Example #1
0
  /** Do the initial setup for the Chart */
  private void init() {
    // #style lineChart
    chart = new LineChart("");
    chart.setUseDefaultColor(false);

    chart.setFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL);
    chart.setDrawAxis(true);
    chart.setPreferredSize(240, 200);
    chart.setMargins(5, 3, 30, 35);
    chart.makeShadowVisible(true);
    chart.setShadowColor(20, 20, 20);
    chart.setColor(0, 0, 0);
    chart.resetData();

    // chart.setMaxYScaleFactor(100);
    // chart.setMaxXScaleFactor(18);
    wec.init();
  }