You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to get Selected Series in oj-chart

Received Response
9
Views
1
Comments
edited Aug 11, 2021 5:54AM in Visual Builder 1 comment

Summary

How to get Selected Series in oj-chart

Content

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

2107

Code 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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!