i create a jqxChart and load json-datas from a Server, the user can change some details like from date and to date, and then i like to reload the chart.
I hav try this: $(‘.diagramm’).jqxChart(‘refresh’);
But They only repaint the chart. I want that the chart send a new request to the Server with the same $.jqx.dataAdapter. What can i do?
<div id='jqxChartMonat' class="diagramm"></diV>
var source ={ datatype: "json", url: "/json/quoten/monatsDurchschnittStatistik/" }; var dataAdapter = new $.jqx.dataAdapter( source, { async: false, autoBind: true, beforeSend: function (xhr,settings){ settings.url += getFilterDatasFromForm(); }, loadError: function (xhr, status, error) { alert('Error loading "' + source.url + '" : ' + error); } }); var settings = { title: "title", description: "zeigt was an", padding: { left: 15, top: 5, right: 25, bottom: 5 }, source: dataAdapter, categoryAxis:{ dataField: 'MONAT', showGridLines: true, description: 'description' }, colorScheme: 'scheme07', seriesGroups:[{ type: 'column', valueAxis:{ displayValueAxis: true, description: 'values' }, series: [{ dataField: 'proz', displayText: 'displayText', opacity:0.3 }] }] }; $('#jqxChartMonat').jqxChart(settings);