How To Get Chart Series data on Button click?

Hey Raj!

Thanks for your question -

You’re pretty close - in order to grab the chart object similar to what you’re getting in the “Before Render” snippet, you’re going to have use the function getHCConfig() on click.  This will return the xAxis, yAxis, and series parameters.  Essentially, you want to use the following snippet on button click:

var chart = skuid.$C('ChartEXG').getHCConfig(); console.log(chart.xAxis); console.log(chart.yAxis); console.log(chart.series);

Hope this helps!
Christine