// Chart Dial
final Random random = new Random();
final int val = random.nextInt(100);
final DialModel dialmodel = new DialModel();
final DialModelScale scale = dialmodel.newScale(0.0, 500.0, -120.0, -300.0, 100.0, 4);// scale's
// configuration data
scale.setText("Users");
scale.newRange(450, 500, "#FF0000", 0.83, 0.89);
scale.newRange(360, 450, "#FFC426", 0.83, 0.89);
scale.setValue(val);
final Chart chart = new Chart();
chart.setType("dial");
chart.setWidth("228px");
chart.setHeight("200px");