grafico icon indicating copy to clipboard operation
grafico copied to clipboard

Normalizer not providing correct range for data values

Open ctumpach opened this issue 11 years ago • 0 comments

Plotting some bargraphs results in the bars going past the upper area of the graph. Try this example.

      function newBarGraph() {
       var bargraph = new Grafico.BarGraph($('bargraph'),
        ['9','16','12','12','12', '18', '9'],
        {
          labels :              ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
          color :               '#4b80b6',
          bargraph_lastcolor :  "#666666",
          hover_color :         "#006677",
          datalabels :          {one: ["January", "February", "March", "April", "May", "June", "July"]}
        });
       };

It appears to be related to this statement in the Normalizer coming back with the wrong value: this.max = data.max();

Is there something I am doing wrong here?

ctumpach avatar Feb 25 '13 22:02 ctumpach