Hello, I have several chart components (Bars, Donuts, Pie, etc) with the right data displayed. I’m looking to do an Onclick event that can pass the data clicked to a variable. For example, I have a Pie or Bar with attributes: Active (6 items) and Pending (12 items), if the user clicked on the corresponding portion of the pie, I want to store that into a variable. Is this even possible with this extension?
I searched the community and the online documentation to no avail. I did stumble on this Interactions | Chart.js but not sure where the code would be implemented.
Is there a way to implement these features through javascript using the chart.js library? Is there an documentation on how to expand on the functionality with custom javascript?
WeWeb definitely should implement some sort of unique identifier at the very least. But I try to stay as far as possible from charts in WeWeb, for now I percieve it as very limiting, might be wrong tho.
I haven’t really seen any nice charts done in WeWeb yet, so yeah, as a finance student, red flag
Any examples of how to filter results, similar to what is done in PowerBi with slicers? I think getting the charts to filter based on a drop down list would be easy enought to implement since this would be changing the input data object array into the charts.
What I’m not sure how to do, is how to filter a data table based on a click event on a chart, for example, I have a pie chart, and when I click on a certain segment, for example, “SUV Sales” rather than “Sedan Sales” a related table changes from showing all car sales to just showing SUV car sales.
I think this is what jaredgibb might be after, a way to grab that onclick event, then use that data in a javascript action to filter a related table or potentially create anouther action like a hyper link to a new page.