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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...