I want to be able to disable a chart if there is no data on it, and then enable the chart when there is data. The reason why I want to do that is because I have three charts that are sync and I want to disable the other charts that have no data, so that the cursor modifier or the zooming and stuff will not affect the other charts without data and will only affect the one with data.
Attached image is 3 charts that are in sync.
- Nung Khual asked 10 months ago
- You must login to post comments
It’s not possible to disable a chart, but you can disable ChartModifiers .
Try setting chartModifier.isEnabled = false
on all modifiers on the chart which you want to disable interaction.
Does this help?
Best regards
Andrew
- Andrew Burnett-Thompson answered 10 months ago
-
That is perfect, it is what I was looking for. Thank you.
- You must login to post comments
Please login first to submit.