#10 Vertical lines

v0.9
closed-duplicate
nobody
rendering (6)
5
2002-10-01
2002-09-30
Anonymous
No

I want a vertical line. Example is:
int[][] model = {{3,2,1}};

double[] columns = {4.0, 4.0 , 4.0 };

String[] rows =
{"insight.de", "primusavitos.de", "MediaMarkt AG"};

String title = "Marktanteile dt. Distributoren";

int width = 640;
int height = 480;

DefaultChartDataModel data = new
DefaultChartDataModel(model, columns, rows);

// c.addChartRenderer(new PieChartRenderer(data,
RowColorModel.getInstance(data)), 1);

// Create chart with default coordinate system
DefaultChart c = new DefaultChart(data, title,
DefaultChart.LINEAR_X_LINEAR_Y);

// Add a line chart renderer
c.addChartRenderer(new LineChartRenderer
(c.getCoordSystem(), data,
RowColorModel.getInstance(data)),
1);

c.setBounds(new Rectangle(0, 0, width, height));

try{
session.setAttribute("chart", c);
}catch(java.lang.IllegalStateException e){
System.out.println
("ATENCION.ERROR EN SETATRIBUTE");
}
DefaultChart d = (DefaultChart)
session.getAttribute("chart");
if(d==null){System.out.println
("**********************ERROR JJV***********");};

And program is in a infinite loop.

Discussion

  • S. Müller
    S. Müller
    2002-10-01

    Logged In: YES
    user_id=138061

    Duplicate of 580786

     
  • S. Müller
    S. Müller
    2002-10-01

    • status: open --> closed-duplicate