class SketchChartExample implements ChartModelExample {
public ChartModel getChartModel(int segments) {
ChartModel cm = new ChartModel("Smartest kid at school!", "font-size: 14px; font-family: Verdana;");
cm.setBackgroundColour("#ffffff");
XAxis xa = new XAxis();
xa.setLabels("John", "Frank", "Mary", "Alec", "Mike", "James");
cm.setXAxis(xa);
SketchBarChart sketch = new SketchBarChart("#00aa00", "#009900", 6);
sketch.setTooltip("#val# points");
sketch.addValues(Random.nextInt(6) + 1, Random.nextInt(5) + 1, Random.nextInt(3) + 1);
SketchBarChart.SketchBar skb = new SketchBarChart.SketchBar(Random.nextInt(5) + 5);