Set the legend position of chart.


chart_set_legend_position(chart, position)
Argument Description
chart The chart id to set to.
position The position of the legend you want to.

Return: True


By default, the legend is set to the bottom of chart. With this function you can set the legend position you want.

There are 4 position you can define with the following constants:

  • chart_bottom
  • chart_left
  • chart_top
  • chart_right

The following image illustrates basically how these should look:


chart_set_legend_position(chartBalanced, chart_top);

This will set the chart legend to top of the chart indexed in the variable "chart Balanced".

results matching ""

    No results matching ""