Skip to Content
avatar image
Former Member

How to capture X-axis value of iChart to display correspoding Grid Chart

Hi Everybody,

I have an iChart of type Bar, which is displaying OrderNumber on x-axis and corresponding values on y-axis. Now when I click on one particular Bar it should capture the corresponding x-axis value(OrderNumber) and open a grid chart showing values of that OrderNumber.

I used "ChartDoubleClickEvent", and when doubleclicked it calls javascript function having document.iChart.getChartObject().getAxisLabelColumns();

But this getAxisLabelColumns() gets only the name of the x-axis i.e., OrderNumber but not the OrderNumber's value of the selected bar.

Kindly respond asap.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 26, 2007 at 05:58 AM

    Srinivas

    <b>Scenario:</b> You have a Bar Chart which contains 4 bars each containing ordernumber at X axis & ordernumber's value at Y axis. You want to show (get) the values on the Y axis after clicking on the Chart

    <b>Solution:</b> You hv to use the method

    <b><i>document.iChart.getChartObject().getYDataValueAt(1,1))</i></b> for first bar's value

    <b><i>document.iChart.getChartObject().getYDataValueAt(2,1))</i></b> for 2nd bar's value and so on.

    Regards

    Som

    Add comment
    10|10000 characters needed characters exceeded