Search found 1633 matches

by paradoxoff
Thu Aug 09, 2018 12:03 pm
Forum: JFreeChart
Topic: @admins: When is spam spam?
Replies: 1
Views: 159

@admins: When is spam spam?

Hi,
it seems that there is an increasing rate of meaningless posts (very general topic, such as "need help" or "I have a question", and no more than 1-2 sentences with very general content). Is it ok to treat those posts as spam, and delete them together with the user?
by paradoxoff
Thu Jun 21, 2018 5:52 pm
Forum: JFreeChart
Topic: Can you help me?
Replies: 0
Views: 116

Re: Can you help me?

How to get input from a user is certainly not a JFreeChart specific question. How do you want to getthe input? gui, web, input prompt at the console,...?
by paradoxoff
Thu Jun 21, 2018 5:49 pm
Forum: JFreeChart
Topic: Multiply Axes?
Replies: 1
Views: 111

Re: Multiply Axes?

That could be a bug in how JFreeChart handles the panning. When the mouse is moved up, the axis range is shifted to lower values, which, for an inverted axis, means that the plot is moving down. I wil have a look at that issue and see whether I can provide a patch. Which version of JFreeChart are yo...
by paradoxoff
Thu Jun 21, 2018 5:44 pm
Forum: JFreeChart
Topic: help me
Replies: 0
Views: 102

Re: help me

How is your chart currently looking, and how would you like to to look?
by paradoxoff
Thu Jun 21, 2018 5:35 pm
Forum: JFreeChart
Topic: hi guy,i have a question,please help me!
Replies: 1
Views: 107

Re: hi guy,i have a question,please help me!

Its hard to understand what you are really asking. I guess that you need to call

Code: Select all

DateAxis.setDateFormatOverride(formatter);
by paradoxoff
Thu Jun 21, 2018 5:33 pm
Forum: JFreeChart
Topic: How to?
Replies: 0
Views: 104

Re: How to?

I would rather look at the code and see whether you have too many dataset or other changes going on.
by paradoxoff
Thu Jun 21, 2018 5:32 pm
Forum: JFreeChart
Topic: HI GUYS, I HAVE A QUESTION.. NEED HELP?
Replies: 1
Views: 99

Re: HI GUYS, I HAVE A QUESTION.. NEED HELP?

I can't see the image. But the idea of overwriting drawItem sounds ok. You could use most of the existing code. In addition, you need to check whether the series that is currently being drawn is the last series that the plot has, and if so, call drawItemLabel multiple times using all available serie...
by paradoxoff
Thu Jun 21, 2018 5:26 pm
Forum: JFreeChart
Topic: Need help?
Replies: 1
Views: 90

Re: Need help?

Call

Code: Select all

 setRangeAxisLocation(int index, AxisLocation.BOTTOM_OR_LEFT)
on the axis in question. Both XYPlot and CategoryPlot have this method implemented.
by paradoxoff
Thu Jun 21, 2018 5:23 pm
Forum: JFreeChart
Topic: I want to ask a question
Replies: 0
Views: 118

Re: I want to ask a question

I assume that your x axis is a NumberAxis. Call

Code: Select all

NumberAxis.setAutoRangeIncludesZero(false)
by paradoxoff
Sun Apr 29, 2018 5:54 pm
Forum: JFreeChart
Topic: Choosing wich XYDataItem to print
Replies: 1
Views: 182

Re: Choosing wich XYDataItem to print

If you want to quickly plot a large number of data points as a line chart, look at the SmaplingXYLineRenderer.
by paradoxoff
Tue Jan 23, 2018 3:23 pm
Forum: JFreeChart
Topic: JFreeChart line not displayed correctly
Replies: 1
Views: 511

Re: JFreeChart line not displayed correctly

Use the XYSeries constructor that accepts a boolean parameter and set that to "false".
by paradoxoff
Mon Jan 08, 2018 7:14 pm
Forum: JFreeChart
Topic: Tooltips for Pie Chart as Annotation?
Replies: 2
Views: 603

Re: Tooltips for Pie Chart as Annotation?

During rendering, an XYDrawableAnnotation simply adds an instance of XYAnnotationEntity to the list of entities stored in the ChartRenderingInfo which is the parent of PlotRenderingInfo instance that is used ass parameter for the addEntity-method. The XYAnnotationEntity just contains a shape, a rend...
by paradoxoff
Mon Jan 08, 2018 4:49 pm
Forum: JFreeChart
Topic: Multiple Sorted Series with String Labels on Domain
Replies: 3
Views: 705

Re: Multiple Sorted Series with String Labels on Domain

if you need to show the street names in a particular order, then simply add the the categories in the same order. For example:
dataset.addValue(speedForBrown, "Speed", "Brown");
dataset.addValue(speedForAsh, "Speed", "Ash");
and so on.
by paradoxoff
Wed Dec 20, 2017 8:24 pm
Forum: JFreeChart
Topic: Multiple Sorted Series with String Labels on Domain
Replies: 3
Views: 705

Re: Multiple Sorted Series with String Labels on Domain

One of your problems seems to be the category order that you see in a CategoryPlot. In short: the categories are not ordered by default. The categories should appear along the CategoryAxis in the order in which the categories were added to the dataset, regardless of the type of Comparable. In the ab...
by paradoxoff
Fri Dec 08, 2017 6:19 pm
Forum: JFreeChart
Topic: Left Scale Label Being Clipped
Replies: 3
Views: 666

Re: Left Scale Label Being Clipped

I have been working with JFreeChart for more than a decade, and picked up a thing or two along the way. :)
If you are unsure about what a property does, just play around, change it, and see in what way it affects the output.