dima Posted January 18, 2023 Share Posted January 18, 2023 Is it possible to Show/Hide markers of UniLineSeries in runtime ? IMHO it works only if assigned in DesignTime in object Inspector or first time when Series initialized. After Markers shown or hidden - I could not change that dynamically in runtime. Thanks for advice, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2023 Share Posted January 18, 2023 Hello, Can you please specify which edition and build of uniGUI are you using? Quote Link to comment Share on other sites More sharing options...
dima Posted January 18, 2023 Author Share Posted January 18, 2023 Hi Sherzod, 1.90.0.1564 trial Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2023 Share Posted January 18, 2023 I will try to check. Quote Link to comment Share on other sites More sharing options...
dima Posted January 20, 2023 Author Share Posted January 20, 2023 Hi Sherzod, do you have any resolution on the problem? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2023 Share Posted January 20, 2023 Hi, Sorry, not yet. Quote Link to comment Share on other sites More sharing options...
dima Posted January 26, 2023 Author Share Posted January 26, 2023 Hi Sherzod, do you have any resolution on the problem? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 26, 2023 Share Posted January 26, 2023 Hello, 3 hours ago, dima said: do you have any resolution on the problem? Okay. Try this approach: 1. InDesignTime -> Series1 (TUniLineSeries) -> ShowMarkers = True 2. Usage, OnReady event, Button OnClick event for example -> procedure TMainForm.UniFormReady(Sender: TObject); begin with UniChart1 do begin JSInterface.JSCall('chart.getSeries()['+ IntToStr(SeriesList.IndexOf(Series1)) +'].setShowMarkers', [False]); //OnClick event True/False if not IsLoading then JSInterface.JSCall('chart.redraw', []); end; end; Quote Link to comment Share on other sites More sharing options...
dima Posted January 26, 2023 Author Share Posted January 26, 2023 Hi Sherzod, Spasibo Brat! I applied this code in an OnClick Event and added Form flag FShowMarkers because Series1.ShowMarkers is not updated in runtime. But hopefully this is solved in production. ... FShowMarkers := not FShowMarkers; JSInterface.JSCall('chart.getSeries()['+ IntToStr(SeriesList.IndexOf(Series1)) +'].setShowMarkers', [FShowMarkers]); Appreciated, Quote Link to comment Share on other sites More sharing options...
easegura777 Posted May 19, 2023 Share Posted May 19, 2023 Hi, to hide series? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 19, 2023 Share Posted May 19, 2023 Hello, 9 hours ago, easegura777 said: to hide series? And to be more precise? Quote Link to comment Share on other sites More sharing options...
easegura777 Posted May 21, 2023 Share Posted May 21, 2023 On 5/19/2023 at 12:15 PM, Sherzod said: Hello, And to be more precise? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 21, 2023 Share Posted May 21, 2023 What are the conditions, describe in more detail. Quote Link to comment Share on other sites More sharing options...
easegura777 Posted May 21, 2023 Share Posted May 21, 2023 3 hours ago, Sherzod said: What are the conditions, describe in more detail. Is possible to Show/Hide UniLineSeries in runtime ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 21, 2023 Share Posted May 21, 2023 2 hours ago, easegura777 said: Is possible to Show/Hide UniLineSeries in runtime ? 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.