Report-Script: Chart1.Series[1].Title := 'Newtext'; -->violation
Hello,
I tried some ways, to change Chart1.Series[1].Title := 'Newtext'; by Script:
- Chart1.Series[1].Title --> Error: Accessviolation
- Chart1.Series[1].LegendTitle --> No error, but also no effect.
- Chart1.Series[1].Legend.Text --> Error: Unknown type 'TSeriesLegend'
How can I set the series title in the legend by Script?
I tried some ways, to change Chart1.Series[1].Title := 'Newtext'; by Script:
- Chart1.Series[1].Title --> Error: Accessviolation
- Chart1.Series[1].LegendTitle --> No error, but also no effect.
- Chart1.Series[1].Legend.Text --> Error: Unknown type 'TSeriesLegend'
How can I set the series title in the legend by Script?
This discussion has been closed.
Comments
This works:
<!--fonto:Lucida Console--><span style="font-family:Lucida Console"><!--/fonto-->TBarSeries(Chart1.Series[0]).Title := 'New text';<!--fontc--></span><!--/fontc-->