Axis y with exponential notation - CanvasJS
Axis y with exponential notation - CanvasJS
by canvasjs
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer" style="height: 360px; width: 100%;"></div>
JavaScript
var chart = new CanvasJS.Chart("chartContainer", {
title: {
text: "Axis y with exponential notation"
},
axisY:{
valueFormatString: "0.0e+0"
},
axisX:{
interval: 10
},
data: [
{
type: "column",
dataPoints: [
{ x: 10, y: 1000000 },
{ x: 20, y: 1500000 },
{ x: 30, y: 2500000 },
{ x: 40, y: 3000000 },
{ x: 50, y: 2800000 }
]
}
]
});
chart.render();