How to show time format in kendo chart

眉间皱痕 提交于 2019-12-25 18:22:24

问题


I have the following JSON object.

[ 
   { 
      "LocationName":"AAA",
      "YValue":0.29,
      "Time":"100"
   },
   { 
      "LocationName":"BBB",
      "YValue":0,
      "Time":"500"
   },
   { 
      "LocationName":"CCC",
      "YValue":0,
      "Time":"10"
   },
   { 
      "LocationName":"DDDD",
      "YValue":0,
      "Time":"120.10"
   },
   { 
      "LocationName":"GGG",
      "YValue":0,
      "Time":"60"
   },
   { 
      "LocationName":"LLL",
      "YValue":0,
      "Time":"60.5"
   }
]

In above JSON Time in Seconds. I need to show that in the Kendo line chart as HH.MM.SS format. And YValue needs to show in Bar chart. LocationName should be X-axis. How can I do it?

来源:https://stackoverflow.com/questions/59093044/how-to-show-time-format-in-kendo-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!