Chart.PlotLine
Defines axis plot line.
Sample configuration:
var plotLineConfig = {
lineWidth: 2,
strokeStyle: 'green',
value: 42,
title: {
text: 'Target 1',
hAlign: 'right',
fillStyle: 'green'
}
}
Example usage:
$(document).ready(function () {
$('#selector').jqChart({
title: { text: 'Plot Lines' },
axes: [
{
location: 'left',
type: 'linear',
plotLines: [
{
lineWidth: 2,
strokeStyle: 'green',
value: 42,
zIndex : 0,
title: {
text: 'Target 1',
hAlign: 'right',
fillStyle: 'green'
}
},
{
lineWidth: 2,
strokeStyle: 'red',
value: 72,
zIndex : 0,
title: {
text: 'Target 2',
hAlign: 'right',
fillStyle: 'red'
}
}
]
}
],
series: [
{
type: 'column',
data: [['A', 70], ['B', 40], ['C', 85],
['D', 50], ['E', 25], ['F', 40]]
}
]
}
}