Jump to content

change legend title of tunilineseries


Vision

Recommended Posts

Hi,

Can you open a ticket in support portal ?

You can try this approach for now:

procedure TMainForm.UniButton2Click(Sender: TObject);
var
  chartSeries: TUniLineSeries;
begin
  chartSeries := Series1;
  with UniChart1, chartSeries do
  begin
    chartSeries.Title := 'New title';
    JSInterface.JSCall('chart.getSeries()['+ IntToStr(SeriesList.IndexOf(chartSeries)) +'].setTitle', [Title])
  end;
end;

 

Link to comment
Share on other sites

Just now, Sherzod said:

procedure TMainForm.UniButton2Click(Sender: TObject);
var
  chartSeries: TUniLineSeries;
begin
  chartSeries := Series1;
  with UniChart1, chartSeries do
  begin
    chartSeries.Title := 'New title';
    JSInterface.JSCall('chart.getSeries()['+ IntToStr(SeriesList.IndexOf(chartSeries)) +'].setTitle', [Title])
  end;
end;

Ticket opened

It work pretty well

tnks man

 

Link to comment
Share on other sites

  • 3 years later...

This line of code throws "Cannot read properties of undefined (reading 'getSeries')"

Unichart1.JsInterface.JSCall('chart.getSeries()....')

And this line 

UniChart1.JSInterface.JSCall('chart.series.getAt('....

Cannot read properties of undefined (reading 'series')

Versión 1.50.0.1482, ExtJS version 6.6.0
How can resolve it?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...