legend.setFloating(true);
legend.setBorderWidth(1);
legend.setBackgroundColor(new RGB(255, 255, 255));
chartConfig.setLegend(legend);
ScatterConfig scatterCfg = new ScatterConfig();
SymbolMarker marker = new SymbolMarker(5);
scatterCfg.setMarker(marker);
marker.setHoverState(new MarkerState());
marker.getHoverState().setEnabled(true);
marker.getHoverState().setLineColor(new RGB(100, 100, 100));
chartConfig.addSeriesConfig(scatterCfg);
InvientCharts chart = new InvientCharts(chartConfig);
ScatterConfig femaleScatterCfg = new ScatterConfig();
femaleScatterCfg.setColor(new RGBA(223, 83, 83, 0.5f));
XYSeries series = new XYSeries("Female", femaleScatterCfg);
series.setSeriesPoints(getScatterFemalePoints(series));
chart.addSeries(series);
ScatterConfig maleScatterCfg = new ScatterConfig();
maleScatterCfg.setColor(new RGBA(119, 152, 191, 0.5f));
series = new XYSeries("Male", maleScatterCfg);
series.setSeriesPoints(getScatterMalePoints(series));
chart.addSeries(series);
addChart(chart);
}