You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application each datapoint is a sum of some recordings values. And I want to use an onclick on the datapoint to render (using ajax) info about each recording included into this datapoint. So I need somehow to bind my recording uuid s to a concrete datapoint. Can I do it somehow with C3 charts?
Thanks
The text was updated successfully, but these errors were encountered:
IMO the c3 Library is for rendering charts of your data. If you need to link to data behind some bar or point on a chart through onclick, then a reasonable approach is to pass the requisite data to the page from the server in JSON form alongside the data and configuration details for the c3 chart. Since application flow is in no way consistent across various applications, it is not in the scope of this library to handle this functionality.
There are ways within the library to recognize which element has been clicked. You just need to associate another object that recognizes the index of array behind the chart. I recommend using data.order: null to maintain control over the association between the c3 chart data and your custom array.
In my application each datapoint is a sum of some recordings values. And I want to use an onclick on the datapoint to render (using ajax) info about each recording included into this datapoint. So I need somehow to bind my recording uuid s to a concrete datapoint. Can I do it somehow with C3 charts?
Thanks
The text was updated successfully, but these errors were encountered: