#877 Wafer Map Chart

closed
General (896)
5
2014-10-18
2008-07-31
Anonymous
No

Hi.. I am using JFree Chart and wants to draw Wafer Map chart and when i am adding dataset values by the dataset's addValue() method then it throws IllegalArgumentException .......

following is code:
__________________

import java.util.Random;
import java.awt.Color;
import org.jfree.chart.*;
import org.jfree.chart.plot.*;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.ChartFactory;
import org.jfree.data.general.WaferMapDataset;

public class WaferMapChart
{
public static void main(String args[])
{
WaferMapDataset data = new WaferMapDataset(30, 20);
data.addValue(1, 5, 14);
data.addValue(1, 5, 13);
data.addValue(1, 5, 12);
data.addValue(1, 5, 11);
data.addValue(1, 5, 10);
data.addValue(1, 5, 9);
data.addValue(7, 5, 8);
data.addValue(8, 5, 7);
data.addValue(9, 5, 6);
data.addValue(1, 6, 10);
data.addValue(1, 7, 10);
data.addValue(1, 8, 10);
data.addValue(1, 9, 10);
data.addValue(1, 10, 10);
data.addValue(1, 11, 10);
data.addValue(1, 11, 11);
data.addValue(1, 11, 12);
data.addValue(2, 11, 13);
data.addValue(1, 11, 14);
data.addValue(2, 11, 9);
data.addValue(2, 11, 8);
data.addValue(2, 11, 7);
data.addValue(2, 11, 6);

    JFreeChart chart = ChartFactory.createWaferMapChart\(
        "Wafer Map Chart", 
        data,

PlotOrientation.VERTICAL,
true,
false,
false
);

    ChartFrame frame=new ChartFrame\("Category Step Chart",chart\);
        frame.setVisible\(true\);
        frame.setSize\(450,350\);
\}

}

after executing it throws following lines ...

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Null 'fillPaint' argument.
at org.jfree.chart.LegendItem.<init>(LegendItem.java:295)
at org.jfree.chart.LegendItem.<init>(LegendItem.java:226)
at

Discussion

  • David Gilbert

    David Gilbert - 2009-03-19
    • labels: 312583 --> General
    • assigned_to: nobody --> mungady
    • status: open --> closed
     
  • David Gilbert

    David Gilbert - 2009-03-19

    Your sample code works for me. Perhaps the bug has been fixed in the interim? Closing.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks