Having trouble with my code - the chart isn't updating. I'm new to using canvasJS charts and could use some help.
<%@ page language=”java” contentType=”text/html; charset=UTF-8″ pageEncoding=”UTF-8″%>
<%@ page import=”java.util.*” %>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script>
<script src=”https://canvasjs.com/assets/script/canvasjs.min.js”></script>
<!-- JavaScript code for fetching data and rendering the chart -->
My JSON data :
[{
"creation_time": 1564828719000,
"id": 18443,
"action": "",
"com_Z_Axis": "-29.0",
"humi": "84.4",
"com_X_Axis": "-27.0",
"com_Y_Axis": "0.0",
"pressure": "989.3",
"gyro_Y_Axis": "0.0",
"acc_Y_Axis": "0.0",
"pitch_X_Axis": "351.0",
"temp": "24.5",
"yaw_Z_Axis": "191.0",
"gyro_Z_Axis": "0.0",
"acc_Z_Axis": "1.0",
"gyro_X_Axis": "-0.0",
"acc_X_Axis": "0.0",
"stability": "stable",
"roll_Y_Axis": "6.0",
"direction": ""
}]