opts_.useLogScale ? new LogFunction(xLogScale, 10.0, true) : new LinearFunction(1/xScale);
int maxX = (int)xFunction.getValue(max);
data_ = new int[maxX + 1];
histogram_ = new HistogramRenderer(data_, xFunction);
histogram_.setXFormatter(new CurrencyFormatter());
histogram_.setMaxLabelWidth(LABEL_WIDTH);
}