Home Forums Chart Support Y-Axis label for baseline is hidden when using axisY.minimum Reply To: Y-Axis label for baseline is hidden when using axisY.minimum

#33646

@agaur,

Label are shown at a value which is multiple of interval. To show label at the bottom of y-axis, you can add a stripline & set it’s label-placement to outside. Below is the code snippet showing the same.

var axisY = chart.axisY;
axisY.addTo("stripLines", {
  value: axisY.viewportMinimum,
  label: axisY.viewportMinimum,
  labelPlacement: "outside",
  labelFontColor: axisY.labelFontColor,
  color: axisY.tickColor,
  labelBackgroundColor: chart.backgroundColor,
  thickness: 0
});

Please take a look at this JSFiddle for complete code.
Chart with Label at Viewport Minimum of Axis


Vishwas R
Team CanvasJS