在高级时间序列折线图中显示来自sql server的数据

时间:2017-08-25 13:40:56

标签: javascript jquery html highcharts

我是高级排行榜的第一次使用者。我试图通过highcharts使用可缩放的时间序列折线图显示表数据(来自sql server)。我想绘制一个价值时间线图,可以根据日期进行缩放。任何人都可以帮助我

表:

 tbl_values

列:

   Time datetime,
    Value int

JSON data:
[{"Time":"2017-08-17 16:35:28.000","Value":"3.85"},
  {"Time":"2017-08-17 17:36:28.000","Value":"3.85"},
  {"Time":"2017-08-17 18:35:28.000","Value":"3.86"},
  {"Time":"2017-08-17 19:35:28.000","Value":"3.86"},
  {"Time":"2017-08-18 07:35:28.000","Value":"3.87"},
  {"Time":"2017-08-18 18:35:28.000","Value":"3.86"},
  {"Time":"2017-08-18 19:35:28.000","Value":"3.86"},
  {"Time":"2017-08-18 20:35:28.000","Value":"3.87"},
  {"Time":"2017-09-18 07:35:28.000","Value":"3.87"},
  {"Time":"2017-09-19 18:35:28.000","Value":"3.88"},
  {"Time":"2017-09-18 19:35:28.000","Value":"3.88"},
  {"Time":"2017-09-20 20:35:28.000","Value":"3.88"},
  {"Time":"2017-10-18 07:35:28.000","Value":"3.87"},
  {"Time":"2017-10-18 16:35:28.000","Value":"3.88"},
  {"Time":"2017-10-08 19:39:28.000","Value":"3.89"},
  {"Time":"2017-10-18 20:35:28.000","Value":"3.90"},
  {"Time":"2017-11-18 07:35:28.000","Value":"3.87"},
  {"Time":"2017-11-18 16:35:28.000","Value":"3.85"},
  {"Time":"2017-11-19 19:39:28.000","Value":"3.85"},
  {"Time":"2017-11-20 20:35:28.000","Value":"3.91"},
  {"Time":"2017-12-14 07:35:28.000","Value":"3.90"},
  {"Time":"2017-12-15 16:35:28.000","Value":"3.90"},
  {"Time":"2017-12-16 19:39:28.000","Value":"3.93"},
  {"Time":"2017-12-27 20:35:28.000","Value":"3.91"},
  {"Time":"2018-01-14 06:35:28.000","Value":"3.88"},
  {"Time":"2018-01-15 17:35:28.000","Value":"3.86"},
  {"Time":"2018-01-16 14:39:28.000","Value":"3.86"},
  {"Time":"2018-01-27 20:35:28.000","Value":"3.87"}
] 

0 个答案:

没有答案