You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To display the chart's legend, just call graph.getLegendRenderer().setVisible(true);. You can customize the legend's width and position or alignment.
The title and color that will be used for the series description is the title and color from the series objects.
See BaseSeries#setTitle and BaseSeries#setColor.
Position: By default the legend has a horizontal alignment to the right. The vertical alignment can be set via #setAlign (TOP, MIDDLE, BOTTOM). It is also possible to set a specific position via absolute coordinates via #setFixedPosition(x, y).
Other options/styles that can be customized:
This will also change the size of the colored shape.