简体   繁体   中英

Simplest way to generate graphs using javascript and json

What's the simplest way to generate graphs from values coming from an api using javascript and boostrap? My endpoint output is like this:

[
  {
    "battery": "22.7",
    "temperature": "80",
    "speed": "77",
    "time": "2016-02-12 14:09:04"
  },
  {
    "battery": "22.8",
    "temperature": "82",
    "speed": "99",
    "time": "2016-02-12 14:09:04"
  },
  {
    "battery": "22.7",
    "temperature": "80",
    "speed": "77",
    "time": "2016-02-12 14:08:22"
  }
]

I used this Jquery plugin ages ago.

http://canvasjs.com/jquery-charts/

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