jQWidgets Forums

jQuery UI Widgets Forums Chart Events output

This topic contains 1 reply, has 1 voice, and was last updated by  RCW 11 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Events output #29726

    RCW
    Participant

    I have a 3 series spline graph. I have a click event that outputs the data for the series that I click.

    I also want to output the other two series data but I can’t find a way to get to the other series via the Chart events properties.

    Is this possible ?

    Thanks

    RCW

    Events output #29729

    RCW
    Participant

    I’ve worked it out:

    assuming your data is in variable “data”

    var dataItem =  data[e.elementIndex];
    e.seriesGroup.series[0].dataField + ': ' + dataItem.min + ' - '
    + e.seriesGroup.series[1].dataField + ': ' + dataItem.max + ' - '
    + e.seriesGroup.series[2].dataField + ': ' + dataItem.avg
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.