Simplest way to generate graphs using javascript and json

时间:2016-02-12 19:27:54

标签: javascript json twitter-bootstrap graph

What's the simplest way to generate graphs from values coming from an api using javscript 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"
  }
]

1 个答案:

答案 0 :(得分:0)

I used this Jquery plugin ages ago.

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