Tooltip tooltip = new Tooltip();
tooltip.setCrosshairs(true);
tooltip.setShared(true);
chartConfig.setTooltip(tooltip);
SplineConfig splineCfg = new SplineConfig();
SymbolMarker symbolMarker = new SymbolMarker(true);
symbolMarker.setRadius(4);
symbolMarker.setLineColor(new RGB(102, 102, 102));
symbolMarker.setLineWidth(1);
splineCfg.setMarker(symbolMarker);
chartConfig.addSeriesConfig(splineCfg);
InvientCharts chart = new InvientCharts(chartConfig);
// Series
splineCfg = new SplineConfig();
splineCfg.setMarker(new SymbolMarker(Symbol.SQUARE));
XYSeries series = new XYSeries("Tokyo", splineCfg);
series.setSeriesPoints(getPoints(series, 7.0, 6.9, 9.5, 14.5, 18.2,
21.5, 25.2));
PointConfig config = new PointConfig(new ImageMarker(
"/graphics/sun.png"));
DecimalPoint highest = new DecimalPoint(series, 26.5, config);
series.addPoint(highest);
series.addPoint(new DecimalPoint(series, 23.3));
series.addPoint(new DecimalPoint(series, 18.3));
series.addPoint(new DecimalPoint(series, 13.9));
series.addPoint(new DecimalPoint(series, 9.6));
chart.addSeries(series);
// Series
splineCfg = new SplineConfig();
splineCfg.setMarker(new SymbolMarker(Symbol.DIAMOND));
series = new XYSeries("London", splineCfg);
config = new PointConfig(new ImageMarker("/graphics/snow.png"));
DecimalPoint lowest = new DecimalPoint(series, 3.9, config);
series.addPoint(lowest);
series.addPoint(new DecimalPoint(series, 4.2));