x is timestamp
Sample data [{x: 1613323768000, y: 573, a: 1, b: 20, c: 1, d: 1, e: 11, f: 1, g: 800, h: 612, i: 0, j: 0}, {x: 1613323440000, y: 600, a: 0, b: 20, c: 3, d: 0, e: 12, f: 72, g: 664, h: 468, i: 987, j: 269}, {x: 1613322642000, y: 600, a: 0, b: 20, c: 3, d: 0, e: 12, f: 72, g: 664, h: 468, i: 987, j: 268}, {x: 1613322506000, y: 574, a: 1, b: 20, c: 1, d: 1, e: 11, f: 1, g: 800, h: 612, i: 0, j: 0}, {x: 1613321840000, y: 600, a: 0, b: 20, c: 3, d: 0, e: 12, f: 72, g: 664, h: 468, i: 987, j: 268}, {x: 1613321240000, y: 577, a: 99, b: 21, c: 1, d: 1, e: 11, f: 0, g: 800, h: 612, i: 0, j: 0}, {x: 1613321045000, y: 600, a: 0, b: 20, c: 3, d: 0, e: 12, f: 71, g: 664, h: 468, i: 987, j: 268}, {x: 1613320243000, y: 600, a: 0, b: 21, c: 3, d: 0, e: 12, f: 71, g: 664, h: 468, i: 987, j: 268}, {x: 1613319958000, y: 573, a: 99, b: 21, c: 1, d: 1, e: 11, f: 0, g: 800, h: 612, i: 0, j: 0}]
x is timestamp e is location, b is temperature, g is memory, a is humidity Graph1: Temparature… One line for each location Graph2: Humidity… One line for each location and so on..
Thank You. You got it right. Thank you for giving solution.
Portal weblink is http://skras.ddns.net/mist.html, where this data needs to be displayed
https://jsfiddle.net/canvasjs/QwZuf/ In link shared by you … I am looking for y value to be displayed on chart for most higher value of x. Like in specific case to this jsfiddle link , I am looking for y value on chart for highest x value i.e, 90.
json data format is {“x”: 1583503872000, “b”: 14, “d”: 9, “c”: 1, “a”: 93, “y”: 306}
Use case is… graph shows value of temperature and humidity every 10-15 mins.. and graphs shows trend of 2 days or higher. So there are multiple data points on graph. requirement is to show measured value of temperature/humidity on graph. However every measured can’t be displayed on graph as so many value will make mess on graph. so requirement is to show first value, recent value highest value, lowest value of day etc..
Above code is one of way for doing so but that is only for pre qualified value.