How to get Selected Series in oj-chart
Summary
How to get Selected Series in oj-chartContent
Hi,
I have defined a selection event on the oj-chart. I want to get the selected series or group from the chart.
$variables.selection[0] gives me the count value. How do I get the Selected Series from it.
Version
2107Code Snippet
<oj-chart style="max-width:100%;max-height:320px;" id="oj-chart--34897-1" y-axis.title="Count" x-axis.title="Status" data="[[$page.variables.mySDP]]" legend.title="Status" style-defaults.three-d-effect="on" on-selection-changed="[[$listeners.ojChart123]]" selection-mode="single"> <template slot="itemTemplate"> <oj-chart-item value="[[$current.data.count]]" group-id="[[[$current.data.status]]]" series-id="[[$current.data.status]]"> </oj-chart-item> </template> </oj-chart>
Tagged:
0