maximum - Sets Maximum Value of Axis Y - 0 | JSFiddle Sample Code
maximum - Sets Maximum Value of Axis Y - 0 | JSFiddle Sample Code
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer" style="height: 300px; width: 300px";">
</div>
<div style="margin-top:16px;color:dimgrey;font-size:9px;font-family: Verdana, Arial, Helvetica, sans-serif;text-decoration:none;">Source: <a href="https://canvasjs.com/docs/charts/chart-options/axisy/maximum/" target="_blank" title="maximum - Sets Maximum Value of Axis Y ">https://canvasjs.com/docs/charts/chart-options/axisy/maximum/</a></div>
JavaScript
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer",
{
animationEnabled: true,
title: {
fontWeight: "lighter",
text: "Within This Series"
},
axisY:{
gridThickness: 0,
tickLength: 0,
lineThickness: 0,
labelFormatter: function(){
return " ";
},
minimum: 0,
maximum: 100
},
backgroundColor: "#E0D1A6",
dataPointWidth: 100,
data: [
{
type: "column",
indexLabelMaxWidth: 95,
indexLabelWrap: true,
indexLabelPlacement: "outside",
indexLabelFontColor: "black",
indexLabelFontWeight: "bold",
dataPoints: [
{ y: 0, label: "High Price", color: "#236194", indexLabel: "There are 0 out of total", toolTipContent: "Max dollars $0", indexLabelPlacement:"Outside", indexLabelFontColor: "black" },
{ y: 14, label: "High Price", color: "#236194", indexLabel: "There are 0 out of total cards in the list", toolTipContent: "Max dollars $0", indexLabelPlacement:"Outside", indexLabelFontColor: "black"}
]
}
]
});
chart.render();
}