12-11-2023 12:37 PM
Is there a way to customize the relative position of the text and the icon in a chart legend? I have a horizontal legend with two plots, and the icon of the first plot sits closer to the text of the second plot, and users find it confusing. Here's a screenshot of what I mean:
The text of "Upstream flow" is spaced out more from its own icon, which is closer to the text of "Downstream flow", whose icon is again spaced out to the far right. It looks as though the blue plot icon belongs to "Downstream flow".
Is there a way to move the icons closer to their respective texts and add more separation between the two sets of text and icon? Or, is there a way to move the icon to the left of its respective text so that with the text being left-aligned, the icon and its text are grouped closer together?
Thanks!
12-11-2023 12:42 PM
I guess right-aligning the text in the legend is one way:
But this seems hacky and awkward. Left-aligned items look better in the legend, but I cannot seem to find a property to change the relative position of the text and icon. Like, if I could move the icon to the left of the text, that would be perfect.
12-11-2023 12:59 PM
Using the property Legend Size you can change it, but strangely, only if they are stacked vertically
12-12-2023 12:40 AM
@abvenk wrote:
Is there a way to customize the relative position of the text and the icon in a chart legend?
Right click the graph and select Advanced>>Customize.
It looks like in this dialog you can select the text and move it even without switching to the Customize mode (by clicking the wrench button). After you finish, close the window and apply your changes.
I haven't played with it too much, but if your plot names are relatively fixed, it looks like you can get what you want.
12-12-2023 12:53 PM
I tried this, but I can't move the text or the icon. It looks as though they are moveable but nothing happens, they just snap right back into their original place.
12-12-2023 01:11 PM
The legend is an array of clusters. Each cluster containing 3 elements:
The autosizing of the cluster is set to 1 (Size to Fit).
12-12-2023 01:24 PM
Here is a Waveform Graph control that I hacked into to move the plot icon to the left of the plot name.
12-12-2023 01:26 PM
@paul_a_cardinale wrote:
Here is a Waveform Graph control that I hacked into to move the plot icon to the left of the plot name.
You actually don't need to hack. You can move it using the built-in customizing tool.
12-13-2023 03:20 AM
@abvenk wrote:
I tried this, but I can't move the text or the icon. It looks as though they are moveable but nothing happens, they just snap right back into their original place.
If by "this" you are referring to my suggestion, then I can say it definitely works here (for example on LV 2015, which I currently have open) and apparently works for Paul as well. In the customize window I can grab and move any of the three elements using the mouse or the keyboard and they stay where I put them. With the auto-tool, it does require either holding down Shift to switch to the selection tool or standing on the correct pixel before clicking.
See attached example.