Creating Radar chart

2003-08-25
2003-11-21
  • Jacky Chang

    Jacky Chang - 2003-08-25

    Hi
    Does anyone  know how to create a radar chart using this API?

    Cheers,

     
    • Daniel H.

      Daniel H. - 2003-09-12

      Hi,

      maybe this code snippet can help:
      ....
      int[][] model = { { 10, 50, 75 }, {30, 25, 54 }};
      String[] columnString = { "2001", "2002", "2004" };
      String[] rows = { "Set1", "Set2" };
      String title = "here comes the title...";
             
      ObjectChartDataModel data = new ObjectChartDataModel(model, columnString, rows);

      ChartPanel chartpan = new ChartPanel(data, title);
      chartpan.addChartRenderer(new RadarChartRenderer(chartpan.getCoordSystem(), data), 1);

      drawPanel.add(chartpan);
      ...

      It uses the ChartPanel to add a RadarChart into a Swing application.

      Cheers,

       
    • Andy Mitchell

      Andy Mitchell - 2003-11-21

      Hi,

      ive been playing around with the radar chart, and I would like to know if there is a facility to remove the axis, and change the colour of the data plotted.

      Cheers,
      Andy

       

Log in to post a comment.