jQuery UI Widgets Forums Chart Change min max value for axis

This topic contains 1 reply, has 2 voices, and was last updated by  rafi 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Change min max value for axis #4248

    meubanks
    Member

    I need to change the minimum and maximum values of my charts dynamically. How would I go about doing that? I see how to update the source but since the min and max values are nested in their respective Axis values I don’t know if I would use the same approach.

    Change min max value for axis #4253

    rafi
    Participant

    Have you tried changing a setting and calling the Chart’s ‘refresh’ function?

    // get series groups.
    var seriesGroups = $('#jqxChart').jqxChart('seriesGroups');
    // change nested setting.
    seriesGroups[1].valueAxis.unitInterval = 100;
    // redraw the chart.
    $('#jqxChart').jqxChart('refresh');
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.