15
Views
2
Comments
Chart Legend Position
Question

I have bar chart with "Inside" legend position. but it showing on the right side, how can i change the position to Inside left?


Thanks!


Roman

mvp_badge
MVP
Rank: #19

Hi Roman,

You can analyze the chart's CSS (in a browser) and identify the right class applied to the legend and adjust it (in your screen) accordingly.

Hope this nudges you in the right direction!

Rank: #128

Hi Roman,

highcharts offers a lot of flexibility on how to position your legend.  The options you can choose as LegendPosition in the outsystems component is just a small subset.  You can brew your own by making use of AdvancedFormat.HighchartsJSON property of your chart widget.

You'll have to play a bit with the settings to achieve what you want, see the highcharts api for all the options.

It will look something like

so I'm not completely sure about the exact usage of these options, but I think the floating means you want it inside the plot area, the align and vertical align give a rough position, and the x and y give a more finetuned extra positioning.

Good luck,

Dorine