-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select the first line by default #54
Comments
Hi @Cyycl , Thanks for using our Syncfusion Flutter chart widget. Your requirement for selecting the line can be achieved using initialSelectedDataIndexes of series property. Here you need to pass the point index value to select the segment. You can find the code snippet below in which we have passed all the point index value using a loop since your requirement is to select the first series. You can change this based on your requirements.
For your convenience, we have attached the sample. Hope this helps. Thanks, |
thanks, @dharanidharandharmasivam. Thank you very much for the example, but the example display is not what I want. I want to show the selected line by default, and the rest don't show. |
Hi @Cyycl , Thanks for your information. You can hide the series using the isVisible property. By default, the isVisible property of the series will be true, if you set this to false then the series will be hidden. Find the sample and code snippet below to achieve this.
Thanks, |
There are multiple lines, I want to select the first line by default, how can I do it?
Thanks~~
The text was updated successfully, but these errors were encountered: