Chart series labels
Posted: Fri May 22, 2020 11:14 am
Hi,
Is it possible to turn chart series labels on or off with code in the Before Print event of a report or chart?
I've tried the code below,
Chart1.Series[0].seriesLabels.visible = false;
but get the following error....
"The error of compilation is found in the 'BeforePrint' event of the 'Chart1' component:
'Stimulsoft.Report.Chart.IStiSeries' does not contain a definition for 'seriesLabels' and no extension method 'seriesLabels' accepting a first argument of type 'Stimulsoft.Report.Chart.IStiSeries' could be found (are you missing a using directive or an assembly reference?)"
I've changed the title of a chart with the following code...
Chart1.Title.Text = "New Chart Title"
I was hoping there would be similar syntax for turning series labels on or off. If it is possible would you be able to provide an example?
Thanks,
Carl
Is it possible to turn chart series labels on or off with code in the Before Print event of a report or chart?
I've tried the code below,
Chart1.Series[0].seriesLabels.visible = false;
but get the following error....
"The error of compilation is found in the 'BeforePrint' event of the 'Chart1' component:
'Stimulsoft.Report.Chart.IStiSeries' does not contain a definition for 'seriesLabels' and no extension method 'seriesLabels' accepting a first argument of type 'Stimulsoft.Report.Chart.IStiSeries' could be found (are you missing a using directive or an assembly reference?)"
I've changed the title of a chart with the following code...
Chart1.Title.Text = "New Chart Title"
I was hoping there would be similar syntax for turning series labels on or off. If it is possible would you be able to provide an example?
Thanks,
Carl