Axis value set to blank - CanvaJS
Axis value set to blank - CanvaJS
by canvasjs
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<body>
<div id="chartContainer" style="height: 400px; width: 100%;">
</div>
</body>
JavaScript
var chart = new CanvasJS.Chart("chartContainer",
{
theme: "theme1",
title:{
text: "Set Axis Values to blank"
},
axisX: {
valueFormatString: " ",
tickLength: 0,
},
axisY: {
valueFormatString: " ",
tickLength: 0,
},
data: [
{
type: "column",
dataPoints: [
{ x:10, y: 3275.6},
{ x: 20, y: 5250.8 },
{ x: 30, y: 6255.3 },
{ x: 40, y: 8275.2 },
{ x: 50, y: 6378.1 },
{ x: 60, y: 5258.4 },
{ x: 70, y: 3514.8 }
]
}
]
});
chart.render();