Vision Posted November 1, 2018 Share Posted November 1, 2018 Hi I'm not able to change legend of tunichart that describe a tuinlineseries at design time. in before show seem working (series.title:='dummy';) but i need to change the legend frequently on click button. tnks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 1, 2018 Share Posted November 1, 2018 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; Quote Link to comment Share on other sites More sharing options...
Vision Posted November 1, 2018 Author Share Posted November 1, 2018 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 Quote Link to comment Share on other sites More sharing options...
NizamUlMulk Posted January 31, 2022 Share Posted January 31, 2022 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? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 31, 2022 Share Posted January 31, 2022 Can you test it on the latest versions, and upgrade to the latest versions? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.