How do I set the ngx-chart for y axis to always start from 0

Discussão em 'Angular' iniciado por TKirahvi, Março 24, 2025.

  1. TKirahvi

    TKirahvi Guest

    Using "@swimlane/ngx-charts": "^20.5.0"

    If I set [yScaleMin]="0" it doesn't seem to be obeyed and the min isn't always 0. For example, if the minimum value of the data set is >20, the y axis starts from 20.

    If I set [yAxisTicks]="[0,20,40,60,80,100]" then it always starts from 0 but the bottom of the chart gets all messed up (see image).

    [​IMG]

    Continue reading...

Compartilhe esta Página