Skip to content Skip to sidebar Skip to footer

Set My Chart Min Yaxis To 0

I am using ng2charts which are build on chartjs (I think). I want to set my y-axis to start at a particular value. How can I do this? Dynamically from typescript would be great, ha

Solution 1:

got it. Its in the chartOptions....

  public barChartOptions:any = {
    scaleShowVerticalLines:false,
    responsive:true,
    scales: {
      yAxes: [{
        ticks: {
          beginAtZero: true
        }
      }]
    }
  };

Post a Comment for "Set My Chart Min Yaxis To 0"