seriesGroups:
[
{
type: 'splinearea',
useGradient: false, // disable gradient for the entire group
valueAxis:
{
unitInterval: 10,
minValue: 0,
maxValue: 100,
displayValueAxis: false,
description: 'Goal in minutes',
axisSize: 'auto',
tickMarksColor: '#888888'
},
series: [
{ dataField: 'Goal', displayText: 'Personal Goal', opacity: 0.7 }
]
},
{
type: 'stackedcolumn',
columnsGapPercent: 100,
seriesGapPercent: 5,
useGradient: false, // disable gradient for the entire group
valueAxis:
{
unitInterval: 10,
minValue: 0,
maxValue: 100,
displayValueAxis: true,
description: 'Time in minutes',
axisSize: 'auto',
tickMarksColor: '#888888',
gridLinesColor: '#777777'
},
series: [
// override the useGradient property at series level
{ dataField: 'Running', displayText: 'Running', useGradient: true },
{ dataField: 'Swimming', displayText: 'Swimming' },
{ dataField: 'Cycling', displayText: 'Cycling' }
]
}
]
seriesGroups:
[
{
type: 'line',
valueAxis:
{
unitInterval: 500,
minValue: 0,
maxValue: 3000,
displayValueAxis: true,
description: 'Daily Closing Price',
axisSize: 'auto',
tickMarksColor: '#888888'
},
series: [
{ dataField: 'S&P 500', displayText: 'S&P 500', color: '#ff0000' },
{ dataField: 'NASDAQ', displayText: 'NASDAQ', color: '#0000ff' }
]
}
]
categoryAxis:
{
gridLinesColor: '#0000FF',
showGridLines: true,
gridLinesInterval: 10
}
valueAxis:
{
gridLinesColor: '#0000FF',
showGridLines: true,
gridLinesInterval: 20
}
categoryAxis:
{
showTickMarks: true,
tickMarksColor: '#0000FF',
tickMarksInterval: 10
}
valueAxis:
{
showTickMarks: true,
tickMarksColor: '#0000FF',
tickMarksInterval: 10
}
// select the chart element and change the default border line color.
$('#jqxChart').jqxChart({borderLineColor: 'Blue'});
// refresh the chart element
$('#jqxChart').jqxChart('refresh');
Sets the chart's background color.
// select the chart element and change the default background color.
$('#jqxChart').jqxChart({backgroundColor:'Gray'});
// refresh the chart element
$('#jqxChart').jqxChart('refresh');
// select the chart element and set background image.
$('#jqxChart').jqxChart({backgroundImage: '../images/chart_background.jpg'});
// refresh the chart element
$('#jqxChart').jqxChart('refresh');