Chart Max Value not working

  • 1
  • Problem
  • Updated 4 years ago
Here is my setup:



Here is my chart:



Notice that the max value on the Rate axis is 1.5, not 1. If I check "Integers Only", I get a Rate axis that goes from 0 to 3.

It may be important to note that I'm using this before render snippet to create the series which uses the Rate axis (thanks, Moshe!):

var chartObj = arguments[0],	$ = skuid.$,
Appts = chartObj.series[0].data,
    Comp = chartObj.series[1].data,
    Shows = []; 
for (var i = 0; i < Appts.length; i++){
    Shows.push(Comp[i] / Appts[i]);
}
var newSeries = {
    name: 'Show Rate',
    data: Shows,
    type: 'line',
    yAxis: 'rateaxis'
};
var n = chartObj.series.length;
chartObj.series[n] = newSeries;


When I check the chartObj in the console, the max is still set to 1.


Any idea what's going on here?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
^
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
But we are really not sure why the hi-charts API would be ignoring the max in this case. Your snippett certainly doesn't seem to be incorrect. It must be something deeper in their product than we can tell.  When we pull data from Skuid models in charts that is equal or exceeds the max we don't get the same results. I'm not sure we know what is going on here. 

Sorry.