var setBarMax = function (options, max) {
          options.scales.xAxes[0].ticks.max = toFloat(max);
        };