juliansteenbakker / community_charts

This project is a fork of google/charts.
Apache License 2.0
84 stars 34 forks source link

Feature: set minimum step size for numeric ticks #33

Open alex-romanenko opened 1 month ago

alex-romanenko commented 1 month ago

Set the minimum step size for numeric ticks. If the calculated step size is less than the minimum step size, the minimum step size is used instead. Example usage:

const charts.BasicNumericTickProviderSpec numericSpec = charts.BasicNumericTickProviderSpec(
      dataIsInWholeNumbers: true,
      zeroBound: true,
      minStepSize: 50, // min step size between ticks
);