Changing legend marker size

How do I change the marker size of the legend items, i.e. make the coloured square smaller?


I can see there is a markerHeight option in the script but how do I access the legendItem to apply it?


Better yet, is there a marker size option in the GUI somewhere?


Thanks

Hi David,


You can change the marker size, as well as other properties, only for custom legend items.

You can hide the measure from the legend and then add a Custom Legend Item:

Image title


Then, click the new legend item and customize it to match the color and text for your measure, as well as any other changes you would like. The width and height of the marker can be found on the Layout tab:

Image title


The markerHeight option you mentioned also applies only to custom legend items and has the same effect.

Thanks for this Liang.


Can I ask for setting marker size and other properties of 'normal' legend items be added as a feature request?


In my view, custom legends are used when the legend entries and actual series differ in some way. Having to manually add all the series to a custom legend just in order to change the markers is cumbersome. At the very least, can there be an option to automatically populate custom legend items from a chart?


Do I need to create a new thread on the feature request forum or can Jordan or someone move this thread over there?

Hi David,


The legend is currently designed to automatically adapt to the series it is showing. For example:


  • If the chart is showing two series, one with bars and the other as a line, the markers will adjust accordingly.
  • If the chart is using size rules, such as in a bubble chart, the size of the markers will adjust to represent that.


Providing the ability to change properties will directly interfere with the automatic behaviour, and therefore has to be done and designed very carefully.


If we want to submit your feature request, and to increase the likelihood of implementation, we will have to provide more details. Please post a new topic on the Feature Request thread with an explanation of your use case. The more detailed it is, the more likely it is that the feature will be implemented. Please focus on things like why you want to change the marker sizes, what the situation is, and why the alternative is an issue.


Also, please keep in mind that, as almost everything else in Dundas BI, it is possible to programmatically populate the custom legend items. It would be a simple script and save you time, if need be.


Regards

Hi, did you find a solution to this problem?

Thanks!!!

Hi Ben,

If the above suggestions don't meet your needs, could you send us your use case as well (or post a feature request topic so more people can contribute)?