String[] days = new String[7];
DateFormatSymbols dfs = new DateFormatSymbols();
for (int i = 0; i < 7; i++) days[i] = dfs.getWeekdays()[Calendar.SUNDAY + i];
LineChartConfig config = new LineChartConfig();
LineChartData dataByDay = new LineChartData(readByDayTotal, days);
LineChart chartByDay = new LineChart(dataByDay, config);
LineChartData dataByDayReset = new LineChartData(readByDayReset, days);
LineChart chartByDayReset = new LineChart(dataByDayReset, config);
// Initialize the panel itself
setBackground(config.getBackgroundColor());