Search found 13 matches

by vivian22
Thu Nov 30, 2006 2:34 pm
Forum: JFreeChart
Topic: Can I display the specific column keys for the dataset
Replies: 3
Views: 3535

There is value for each column key. dataset.addValue(r1, "", category0); dataset.addValue(r2, "", category050); dataset.addValue(r3, "", category1); dataset.addValue(r4, "", category150); dataset.addValue(r5, "", category2); dataset.addValue(r6, "", category250); dataset.addValue(r7, "", category3);...
by vivian22
Wed Nov 29, 2006 10:56 pm
Forum: JFreeChart
Topic: Can I display the specific column keys for the dataset
Replies: 3
Views: 3535

Can I display the specific column keys for the dataset

I created a bar chart. JFreeChart chart = ChartFactory.createBarChart ( "", // chart title "Test", // domain axis label "", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? false // URLs? ); Then for the CatagoryDataSet, Can I ...
by vivian22
Thu Nov 16, 2006 9:02 pm
Forum: JFreeChart
Topic: How to setup the bar width in XYBarRenderer
Replies: 4
Views: 4279

Can I changed the bar width manually?
by vivian22
Thu Nov 16, 2006 7:37 pm
Forum: JFreeChart
Topic: How to setup the bar width in XYBarRenderer
Replies: 4
Views: 4279

So I can't manually change the bar width?
by vivian22
Thu Nov 16, 2006 6:00 pm
Forum: JFreeChart
Topic: How to setup the bar width in XYBarRenderer
Replies: 4
Views: 4279

How to setup the bar width in XYBarRenderer

In BarRenderer I can setup the bar width using the below code: BarRenderer renderer = (BarRenderer) plot.getRenderer(); renderer.setMaximumBarWidth(0.015); But in XYBarRenderer, I don't know how to setup the bar width. XYBarRenderer renderer = (XYBarRenderer) plot.getRenderer(); Does anybody have id...
by vivian22
Wed Nov 15, 2006 10:46 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

I got it work. The chart is display on the swing panel now. I changed that panel layout to absolute layout. Then add one line code as below:

jPanel24.add(chartPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 390, 250));

Then it works.

Thanks for everybody's help.
by vivian22
Wed Nov 15, 2006 4:46 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

As a test, what happens if you replace this line jPanel1.add(chartPanel,CENTER_ALIGNMENT); with this jPanel1.add(new JButton("foo"),CENTER_ALIGNMENT); If the button does not appear where you expect, then the problem is not in the chartPanel but somewhere else. I replaced that line and no buttons sh...
by vivian22
Wed Nov 15, 2006 4:40 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

If anybody had same problem before, could you let me know the solution? I am stuck in the issue for several days. Usually swing components can be dragged and dropped. But I couldn't find any chart I can drag and drop. So I manually made the chart and tried to put on a swing jPanel. Please see the co...
by vivian22
Wed Nov 15, 2006 2:24 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

I put jpanel1 on a JFrame.
by vivian22
Tue Nov 14, 2006 10:02 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

Anybody experienced same situation?
by vivian22
Tue Nov 14, 2006 9:27 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8087

Cannot show a chart on a Swing JPanel

In the swing program, I wrote: //create a dataset CategoryDataset dataset = createDataset(); //create a chart JFreeChart chart = createChart(dataset); //create a chartPanel and set up the size ChartPanel chartPanel = new ChartPanel(chart, false); chartPanel.setPreferredSize(new Dimension(400, 270));...
by vivian22
Mon Nov 13, 2006 7:59 pm
Forum: JFreeChart
Topic: how to create XY Bar Chart
Replies: 0
Views: 1743

how to create XY Bar Chart

In the jFreeChart.jar file, which one is to create a XY Bar Chart?
Thank you.
by vivian22
Fri Nov 10, 2006 10:37 pm
Forum: JFreeChart
Topic: Error found when using jfreechart to develop a Swing screen
Replies: 0
Views: 1451

Error found when using jfreechart to develop a Swing screen

I am working on a Java Swing project. For one of the screens, I need jfreechart to draw a chart. But when I dragged and dropped "BarRenderer" to a frame, there is an error occurred. The following is the message: [ Cannot load component class org.jfree.chart.block.BlockBorder from Jar file: "c:\...."...