String[] hours = new String[Constants.HOURS_IN_DAY];
System.arraycopy(Constants.HOUR_NAMES, 0, hours, 0, hours.length);
hours[0] = Strings.message("report.midnight");
hours[12] = Strings.message("report.noon");
LineChartConfig config = new LineChartConfig();
config.setIndexLabelStep(4);
LineChartData dataByHour = new LineChartData(readByHourTotal, hours);
LineChart chartByHour = new LineChart(dataByHour, config);
LineChartData dataByHourReset = new LineChartData(readByHourReset, hours);
LineChart chartByHourReset = new LineChart(dataByHourReset, config);
// Initialize the panel itself
setBackground(config.getBackgroundColor());
// Build the layout
BBFormBuilder builder = new BBFormBuilder("p:grow", this);
builder.setDefaultDialogBorder();