Home Forums Chart Support MYSQL Temperature Data with Time live chart Reply To: MYSQL Temperature Data with Time live chart

#25664

Herewith,
pls refer this image of My output https://imgur.com/a/1vmfrJ7.

still im getting the same result after giving xValueType.
i am getting temp value and time in unixtimeform (integer).
<script>
window.onload = function () {

var chart = new CanvasJS.Chart(“chartContainer”, {
animationEnabled: true,
exportEnabled: true,
theme: “light1”, // “light1”, “light2”, “dark1”, “dark2”
title:{
text: “PHP Line Chart from Database”
},
axisX:{
title: “time”,

labelAngle: -60
},
data: [{type: “line”, xValueFormatString: “HH mm ss”, xValueType:”datetime”, dataPoints: <?php echo json_encode($dataPoints, JSON_NUMERIC_CHECK); ?>}]
});
chart.render();

}
</script>