简体   繁体   中英

How to create a floating graph with time on y axis?

I need to create one graph with its x-axis should be

0,1,2..10

y-axis should be out current time + next 10 times with an interval of five minites. like this

array = [1.45, 1.50, 1.55, 2.00, 2.05, 2.10, 2.15, 2.20, 2.25, 2.30];

Any body can help me with some sample codes.

Thanks

Look at the charts libraries like flot . Or if you have to write your own code I'd suggest looking at Canvas .

如果您想使用简单的JavaScript图形解决方案,请查看Highcharts

You should also have a look at Google Charts . Look at the line graph examples .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM