4

I need to customize the y-axis value range to start from 0 till 100. I do not want the automated range that Dimple.js adds based on the data that I have. Please suggest if its possible. I tried the x.overrideMaxbut it is messing the bar/line plot.

user982
  • 189
  • 5
  • 14

2 Answers2

6

Using overrideMax should work. In your question you write that you tried x.overrideMax is that a typo in the question? It should be y.overrideMax for the y axis:

y.overrideMax = 100;
John Kiernander
  • 4,904
  • 1
  • 15
  • 29
0

First declare a variable for y-axis, then override max and min values. Please see the example below:

  var y = chart.addMeasureAxis("y", "Horsepower");
  y.overrideMin = 0;
  y.overrideMax = 250;
Amir Md Amiruzzaman
  • 1,911
  • 25
  • 24