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?

Comments

  • edited 8:53AM
    I got help of Fast Report support.
    This works:

    <!--fonto:Lucida Console--><span style="font-family:Lucida Console"><!--/fonto-->TBarSeries(Chart1.Series[0]).Title := 'New text';<!--fontc--></span><!--/fontc-->
This discussion has been closed.