(function () { |
(function () { |
|
|
Flotr.ExampleList.add({ |
Flotr.ExampleList.add({ |
key : 'test-boundaries', |
key: 'test-boundaries', |
name : 'Test Boundaries', |
name: 'Test Boundaries', |
callback : test_boundaries |
callback: test_boundaries |
}); |
}); |
|
|
function test_boundaries (container) { |
function test_boundaries(container) { |
|
|
var |
var |
d1 = [[0, 0], [5, 0], [6, 10], [9, 10]], // First data series |
d1 = [ |
i, graph; |
[0, 0], |
|
[5, 0], |
|
[6, 10], |
|
[9, 10] |
|
], // First data series |
|
i, graph; |
|
|
// Draw Graph |
// Draw Graph |
graph = Flotr.draw(container, [ d1 ], { |
graph = Flotr.draw(container, [ d1 ], { |
title : 'test', |
title: 'test', |
xaxis: { |
xaxis: { |
minorTickFreq: 4 |
minorTickFreq: 4 |
}, |
}, |
lines: { |
lines: { |
lineWidth : 2 |
lineWidth: 2 |
}, |
}, |
grid: { |
grid: { |
outlineWidth : 2, |
outlineWidth: 2, |
minorVerticalLines: true |
minorVerticalLines: true |
|
} |
|
}); |
} |
} |
}); |
|
} |
|
|
|
})(); |
})(); |
|
|