Search found 1634 matches

by paradoxoff
Sun Nov 19, 2017 9:14 am
Forum: JFreeChart
Topic: VectorRenderer - Add Color based upon Dataset
Replies: 4
Views: 5279

Re: VectorRenderer - Add Color based upon Dataset

I am having trouble to understand your requirements. Is it something like this: - Intially, you are having multiple datasets (say 3), each with 5 series, and the legend should not reflect the 3*5 series, but only the 3 datasets. - Once the user selects one dataset, the other datasets shall disappear...
by paradoxoff
Thu Nov 09, 2017 4:43 pm
Forum: JFreeChart
Topic: Issue with LogAxis and minor grid lines
Replies: 4
Views: 5511

Re: Issue with LogAxis and minor grid lines

Looks like a classical bug to me. In the current version of JFreeChart, the LogAxis calculates the minor ticks in a way that seems to be identical to that of a NumberAxis, i.e. with 1, 3, 4, or 9 minor tick lines between major tick lines. In an earlier version, the minor tick count could be explicit...
by paradoxoff
Thu Oct 19, 2017 11:56 am
Forum: JFreeChart
Topic: Bar Chart Negative Values Orientation
Replies: 2
Views: 3626

Re: Bar Chart Negative Values Orientation

If you afe using a CategoryPlot with a BarRenderer, call setBase on the BarRenderer, and use the lowest value in your dataset as parameter.
by paradoxoff
Thu Oct 19, 2017 11:55 am
Forum: JFreeChart
Topic: Suitable chart time for call-stack with duration information
Replies: 1
Views: 2711

Re: Suitable chart time for call-stack with duration informa

Hi, I may have misunderstood your problem, but I think that a CategoryPlot might be the wrong plot type, since it gives you little control about the exact positioning of the bars. Try this example, that is using an XYPlot with an XYBarRenderer, and see whether it is what you need: import java.awt.Fo...
by paradoxoff
Thu Oct 05, 2017 8:34 pm
Forum: JFreeChart
Topic: Issue in XYSplineRenderer
Replies: 5
Views: 6402

Re: Issue in XYSplineRenderer

pls help..how to solve this issue. What issue? The "smoothness" of the curve should be corrected by the precision parametzer as suggested above, and the issue with the curve going above or below the actual data points cant be solved. If you interpolation a spline between data points, and the y valu...
by paradoxoff
Tue Sep 12, 2017 9:35 pm
Forum: JFreeChart
Topic: change icons in the MinMaxCategory Renderer?
Replies: 3
Views: 5523

Re: change icons in the MinMaxCategory Renderer?

Looks like you habe now two new renderer classes (the modified MinMax and the one tha derives from the modified MinMax) instead of one.
That really looks like a dirty hack, and not neccessarily less work that the clean approach (which is writing a new renderer).
Anyway, your choice.
by paradoxoff
Mon Sep 11, 2017 4:31 pm
Forum: JFreeChart
Topic: change icons in the MinMaxCategory Renderer?
Replies: 3
Views: 5523

Re: change icons in the MinMaxCategory Renderer?

Does anyone have a idea how to work around either the fireChangeEvent() or all the private variables? No, not really. You might be better of by writing your own renderer that extends AbstractCategoryItemRenderer and only implements the features that you need. You could use the BarRenderer class as ...
by paradoxoff
Sun Sep 10, 2017 6:15 pm
Forum: JFreeChart
Topic: How to create a category chart with lines to x axis?
Replies: 3
Views: 5764

Re: How to create a category chart with lines to x axis?

You could siwtch to an XYPlot. See this thread for an example.
by paradoxoff
Mon Sep 04, 2017 9:54 pm
Forum: JFreeChart
Topic: How To create regression lines (standard deviation channel)
Replies: 8
Views: 9543

Re: How To create regression lines (standard deviation chann

1. Group your data into segments, one segment per regression line. We probably won't be able to help on that. 2. Calculate the regression line for the points in each section. 3. Get the first and last x value for each segment, and calculate the corresponding y value with the help of the regression l...
by paradoxoff
Mon Aug 07, 2017 8:04 pm
Forum: JFreeChart
Topic: Clicking on Legend
Replies: 5
Views: 6234

Re: Clicking on Legend

You have mixed some flags (SeriesVisibleInLegend, SeriesVisible, and ItemVisible). Just use the SeriesVisibleInLegend flag, and nothing else.
If a series is not visible, it will not appear in the legend, even it its SeriesVisibleInLegend flag is set to true.
by paradoxoff
Mon Aug 07, 2017 5:06 pm
Forum: JFreeChart
Topic: Clicking on Legend
Replies: 5
Views: 6234

Re: Clicking on Legend

It is doable, but will require some effort. Here is an outline of a possible approach: - Register a ChartMouseListener on the ChartPanel and implement the chartMouseClicked-method. - The ChartMouseEvent parameter gives you a reference to a ChartEntity and a JFreeChart - Check whether the ChartEntity...
by paradoxoff
Mon Aug 07, 2017 4:07 pm
Forum: JFreeChart
Topic: Single axis graphs in JFreechart
Replies: 3
Views: 4366

Re: Single axis graphs in JFreechart

I intended to type "y" but used a Keyboard with a wrong layout :-)
by paradoxoff
Fri Aug 04, 2017 5:43 pm
Forum: JFreeChart
Topic: How to add two columns to the chart
Replies: 4
Views: 5421

Re: How to add two columns to the chart

Something like this: public class SimpleBarChart { public static void main(String[] args) { DefaultCategoryDataset dcd = new DefaultCategoryDataset(); dcd.addValue(23, "A", "Test1"); dcd.addValue(10, "A", "Test2"); dcd.addValue(66, "B", "Test1"); dcd.addValue(70, "B", "Test3"); dcd.addValue(82, "C",...
by paradoxoff
Fri Aug 04, 2017 5:35 pm
Forum: JFreeChart
Topic: Single axis graphs in JFreechart
Replies: 3
Views: 4366

Re: Single axis graphs in JFreechart

Use an XYPlot, give the y axis a fixed scale (say, 1), then add your data points where x denotes the time and z has a constant value of 0.5: