LightningChart Python: GaugeChart legend is empty — how do I add a legend entry?

2 hours ago 1
ARTICLE AD BOX

I am using LightningChart Python and I am used to legends on ChartXY where series automatically appear in the chart legend.

With GaugeChart, I can create the chart and configure legend options, but the legend shows up empty (no entries). I would like to display a legend item such as “Temperature Sensor” with a colored icon/shape, similar to other charts.

For example:

import lightningchart as lc chart = lc.GaugeChart(theme=lc.Themes.Dark, title="Gauge Chart") # I expected some legend entry here, but it stays empty chart.legend.set_options(visible=True, position="TopRight", title="Legend") chart.set_interval(0, 100) chart.set_value(64.78) chart.open()

How can I add a legend entry for a GaugeChart?
https://lightningchart.com/python-charts/docs/features/gauge-chart/

Read Entire Article