jQWidgets Forums

jQuery UI Widgets Forums Chart Chart refresh method not work

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Chart refresh method not work #73370

    jayjay1215
    Participant

    Dear Developer:

    I want to change the request data and refresh the line or pie chart.

    But I used “$(‘#jqxChart’).jqxChart(‘refresh’);” It seems not work. It only to refresh the chart but bind data not changed.

    I use jqwidgets 3.8.0 now!

    My example code as below:

    source.url=’http://www.xxx.com/request’;
    dataAdapter = new $.jqx.dataAdapter(source,
    {
    async: false,
    autoBind: true,
    });
    dataAdapter.dataBind();
    $(‘#chart’).jqxChart(‘refresh’);

    But this code can not work yet.

    Please help me to look at this problem?

    Thanks!

    Chart refresh method not work #73381

    ivailo
    Participant

    Hi jayjay1215,

    Instead $(‘#chart’).jqxChart(‘refresh’); use $('#jqxChart').jqxChart({source: dataAdapter}); and the problem will be fixed.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.