Search found 13 matches
- 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);...
- 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 ...
- Thu Nov 16, 2006 9:02 pm
- Forum: JFreeChart
- Topic: How to setup the bar width in XYBarRenderer
- Replies: 4
- Views: 4279
- Thu Nov 16, 2006 7:37 pm
- Forum: JFreeChart
- Topic: How to setup the bar width in XYBarRenderer
- Replies: 4
- Views: 4279
- 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...
- Wed Nov 15, 2006 10:46 pm
- Forum: JFreeChart
- Topic: Cannot show a chart on a Swing JPanel
- Replies: 8
- Views: 8087
- 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...
- 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...
- Wed Nov 15, 2006 2:24 pm
- Forum: JFreeChart
- Topic: Cannot show a chart on a Swing JPanel
- Replies: 8
- Views: 8087
- Tue Nov 14, 2006 10:02 pm
- Forum: JFreeChart
- Topic: Cannot show a chart on a Swing JPanel
- Replies: 8
- Views: 8087
- 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));...
- 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.
Thank you.
- 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:\...."...