Flot Chart Extend Lines To End Of Chart
I have been trying to extend the 'LineChart' in the chart to beginning and the end of the canvas. But i am having no luck with it The options for Flot Charts are . ///initialize d
Solution 1:
You're mapping the line to the bars with the same x-values.
You could add two more values to the beginning and end of your line graph array, so it extends beyond the canvas.
varbuffer=5*60*600;//orwhatevernumbertochangethetimestamp
[[1439351830973-buffer,936] //newarrayelement
[[1439351830973,936],[1439352130973,619],[1439352430973,1981],[1439352730973,448],[1439353030973,297],[1439353330973,982],[1439353630973,5606],[1439353930973,5865],[1439354230973,1979],[1439354530973,4495],[1439354830973,2305]],
[1439354830973+buffer,2305]] //newarrayelement
But then the question is, which values to use for the y-values on these new array items? You could use the same value as the penultimate values so the line graph tails off horizontally.
Post a Comment for "Flot Chart Extend Lines To End Of Chart"