|
|
@ -14,9 +14,9 @@ |
|
|
|
document.getElementById('chart'), |
|
|
|
document.getElementById('chart'), |
|
|
|
[ |
|
|
|
[ |
|
|
|
{ target: 'test11', datapoints: getData(), matchedKey: 'm-1', color: 'red', colorFormatter: (data) => ['green', 'yellow'][data.rowIndex] }, |
|
|
|
{ target: 'test11', datapoints: getData(), matchedKey: 'm-1', color: 'red', colorFormatter: (data) => ['green', 'yellow'][data.rowIndex] }, |
|
|
|
// { target: 'test12', datapoints: [[100, 10], [200, 20], [300, 10]], matchedKey: 'm-1', color: 'green' }, |
|
|
|
{ target: 'test12', datapoints: [[100, 10], [200, 20], [300, 10]], matchedKey: 'm-1', color: 'green' }, |
|
|
|
// { target: 'test21', datapoints: [[130, 10], [230, 26], [330, 15]], matchedKey: 'm-2', color: 'yellow'}, |
|
|
|
{ target: 'test21', datapoints: [[130, 10], [230, 26], [330, 15]], matchedKey: 'm-2', color: 'yellow'}, |
|
|
|
// { target: 'test22', datapoints: [[130, 10], [230, 27], [330, 10]], matchedKey: 'm-2', color: 'blue' }, |
|
|
|
{ target: 'test22', datapoints: [[130, 10], [230, 27], [330, 10]], matchedKey: 'm-2', color: 'blue' }, |
|
|
|
], |
|
|
|
], |
|
|
|
{ |
|
|
|
{ |
|
|
|
usePanning: false, |
|
|
|
usePanning: false, |
|
|
@ -24,8 +24,8 @@ |
|
|
|
x: { format: 'custom', invert: false, valueFormatter: (value) => { return 'L' + value; } }, |
|
|
|
x: { format: 'custom', invert: false, valueFormatter: (value) => { return 'L' + value; } }, |
|
|
|
y: { format: 'custom', invert: false, range: [0, 30], valueFormatter: (value) => { return value + '%'; } } |
|
|
|
y: { format: 'custom', invert: false, range: [0, 30], valueFormatter: (value) => { return value + '%'; } } |
|
|
|
}, |
|
|
|
}, |
|
|
|
stacked: false, |
|
|
|
stacked: true, |
|
|
|
matching: false, |
|
|
|
matching: true, |
|
|
|
maxBarWidth: 20, |
|
|
|
maxBarWidth: 20, |
|
|
|
minBarWidth: 4, |
|
|
|
minBarWidth: 4, |
|
|
|
zoomEvents: { |
|
|
|
zoomEvents: { |
|
|
|