chart.updateOptions() when series are hidden #4618
Unanswered
EduardoFoxRaposo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Using Apexcharts in my Laravel project.
I have a stacked column graph with multiple data series showing sales data per product.
I added a few buttons to allow for some advanced filtering, such as to pick specific product categories, or calculate production averages instead of sums.
The filters passes the necessary parameters to my controller, where I recalculate the graph data, save it to the chart options array, and then pass the chart options array back to the view. Through a JavaScript chart-update function.
The problem, however, is when I deselect a bunch of products/data series using the clickable legends, and then try to filter the data through the Ajax call.
I keep getting this error at the chart.updateOptions
I suspect the issue has something to do with trying to update invisible series.
Does anyone have experience with this?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions