Rank: Member
Groups: ExpiredLicense, Registered Joined: 7/30/2013(UTC) Posts: 15
Thanks: 6 times Was thanked: 0 time(s) in 0 post(s)
|
hi sir, i'm using ajax call to draw a multiple Y axis chart with below sample, but the sample is single axis, Binding to Remote Datai tried to make it multiple with below code, but failed, the y2 data can't be bind to right axis, always bind with left axis. Code:$(document).ready(function () { $('#jqChart').jqChart({ title: { text: 'Binding to Remote Data' }, //animation: { duration: 1 }, dataSource: { ajax: { type: "POST", url: "chart_action.php", async: false, data: {dept:'MOS3',actionId:'loadChart'}, dataType: 'json' } }, axes: [ { name:'rec_time', location: 'bottom', type: 'dateTime', labels: { font: '10px sans-serif', angle: -90 } }, { name:'y1', location: 'left', type: 'numeric' }, { name:'y2', location: 'right', type: 'numeric' } ], series: [ { type: 'column', xValuesField: { name: 'rec_time', type: 'dateTime' // string, numeric, dateTime }, yValuesField: { name: 'qty', axisY: 'y1', type: 'numeric' // string, numeric, dateTime } }, { type: 'line', xValuesField: { name: 'rec_time', type: 'dateTime' // string, numeric, dateTime }, yValuesField: { name: 'median', axisY: 'y2', type: 'numeric' // string, numeric, dateTime } } ] }); }); pls. help, any comment is appreciated, thanks!
|