Documentation
Working with Chart Series
jqxChart allows you to visualize data in multiple series. In jqxChart series are grouped together into series groups. A series group specifies the type of the series in the group and contains the definition and one or more series bound the data fields in the source. In addition, a series group may have its own valueAxis and xAxis.For example, imagine you're working with the following JavaScript array of objects which defines seven data records:
var sampleData = [ { Day:'Monday', Keith:30, Erica:15, George: 25}, { Day:'Tuesday', Keith:25, Erica:25, George: 30}, { Day:'Wednesday', Keith:30, Erica:20, George: 25}, { Day:'Thursday', Keith:35, Erica:25, George: 45}, { Day:'Friday', Keith:20, Erica:20, George: 25}, { Day:'Saturday', Keith:30, Erica:20, George: 30}, { Day:'Sunday', Keith:60, Erica:45, George: 90}];
seriesGroups:[ { type: 'bubble', series: [ { dataField: 'George', displayText: 'George'} ] }, { type: 'line', series: [ { dataField: 'Keith', displayText: 'Keith'}, { dataField: 'Erica', displayText: 'Erica'}, ] }]
|