title: Set maximum value on primary measure axis
body: <p>This is a question for Flutter development using <code>charts_flutter</code>. Is there a parameter to fix the maximum value on the measure axis? I'm currently using <code>desiredTickCount</code> as a hack but I ideally only want 3 tickers (0,5,10) for a range of 0-10 on the measure axis.</p>
  
  <pre><code>Code snippet:
    Widget _createChart() {
          return new charts.BarChart(
            _createSampleData(),
            animate: true,
            vertical: false,
  
  
            primaryMeasureAxis: new charts.NumericAxisSpec(
              tickProviderSpec: new charts.BasicNumericTickProviderSpec(
                desiredTickCount: 11,
              ),
            ),
            barRendererDecorator: new charts.BarLabelDecorator(),
            // Hide domain axis.
            domainAxis:
                new charts.OrdinalAxisSpec(renderSpec: new charts.NoneRenderSpec()),
          );
        }
  
        static List&lt;charts.Series&lt;OrdinalSales, String&gt;&gt; _createSampleData() {
          final data = [
            new OrdinalSales('Liver', 8),
            new OrdinalSales('Heart', 4),
            new OrdinalSales('Spleen', 5),
            new OrdinalSales('Lung', 1),
            new OrdinalSales('Kidney', 2),
          ];
  
          return [
            new charts.Series&lt;OrdinalSales, String&gt;(
              id: 'Sales',
              domainFn: (OrdinalSales sales, _) =&gt; sales.year,
              measureFn: (OrdinalSales sales, _) =&gt; sales.sales,
              data: data,
              // Set a label accessor to control the text of the bar label.
              labelAccessorFn: (OrdinalSales sales, _) =&gt; '${sales.year}',
            ),
          ];
        }
      }
  
      class OrdinalSales {
        final String year;
        final int sales;
  
        OrdinalSales(this.year, this.sales);
      }
  </code></pre>