Search found 1634 matches

by paradoxoff
Mon Jul 24, 2017 5:25 pm
Forum: JFreeChart
Topic: Converting series to array.
Replies: 1
Views: 2780

Re: Converting series to array.

manjusha0110 wrote:But I am making some mistake in the loop, so i am not getting the desired output.
Show us the loop, and we might be able to correct the error.
by paradoxoff
Sat Jul 22, 2017 5:01 pm
Forum: JFreeChart
Topic: How to set different range from tick unit to tick unit
Replies: 1
Views: 2763

Re: How to set different range from tick unit to tick unit

Yes, you can. Subclass the axis that you use, override refreshTicks, and return whatever list of ticks you need. For the record: - JFreeChart should support generics. The return value is declared as List, but is really a List<ValueTick>. - Since this question comes up quite often, we probably need a...
by paradoxoff
Sat Jul 22, 2017 4:49 pm
Forum: JFreeChart
Topic: Adding Chart to Pallete (Netbeans)
Replies: 2
Views: 4077

Re: Adding Chart to Pallete (Netbeans)

ChartPanel is the Gui component of JFreeChart.
by paradoxoff
Sat Jul 22, 2017 4:48 pm
Forum: JFreeChart
Topic: Display all bars with equal width in x axis using XYBarchart
Replies: 1
Views: 2857

Re: Display all bars with equal width in x axis using XYBarc

The axis in your first image does not look like a normal ValueAxis. How have you generated that chart? And I do not understand your question. The second image already shows a chart that looks like you want, you you have either created the second image with a paint program, or you have already solved...
by paradoxoff
Thu Jul 20, 2017 8:20 pm
Forum: JFreeChart
Topic: high low series dent
Replies: 1
Views: 2776

Re: high low series dent

There is no built-in option to achieve that. You will have to create a new renderer and, re-implement the drawItem-methode of HighLowRenderer and add the desired features.
by paradoxoff
Tue Jul 18, 2017 12:50 pm
Forum: JFreeChart
Topic: problem in setting different labels on each bar
Replies: 7
Views: 7604

Re: problem in setting different labels on each bar

Thanks for the screenshot with the tabale layout. You have one numerical value for each category. What you need to do is to store this value in a suitable data structure, use that to create a custom CategoryItemLabelGenerator, and add your label generator to the renderer. A suitable label generator ...
by paradoxoff
Tue Jul 18, 2017 7:59 am
Forum: JFreeChart
Topic: problem in setting different labels on each bar
Replies: 7
Views: 7604

Re: problem in setting different labels on each bar

You seem to only read two columns: one (Cell.CELL_TYPE_NUMERIC, columnIndex of 1) that contains the value, and a second one (Cell.CELL_TYPE_STRING, columnIndex irrelevant) that is used to generate the category keys.
Where is the third column that you want to use to label the bars?
by paradoxoff
Sun Jul 16, 2017 2:08 pm
Forum: JFreeChart
Topic: problem in setting different labels on each bar
Replies: 7
Views: 7604

Re: problem in setting different labels on each bar

If you show the code that you have, I will look at it and trhe suggest how a suitable label generator implementation may look like.
by paradoxoff
Sun Jul 16, 2017 8:45 am
Forum: JFreeChart
Topic: Scrollable, autoadjustable financial chart
Replies: 9
Views: 10581

Re: Scrollable, autoadjustable financial chart

I just dig around in the code opf XYPlot to find the origin of this behaviour, and I may have found the reason. When the range of an axis in an XYPlot is changing, the plot simply fires a PlotChangeEvent. No range adjustements of the other axes are carried out. If the dataset is changing (as is prob...
by paradoxoff
Sat Jul 15, 2017 2:30 pm
Forum: JFreeChart
Topic: Scrollable, autoadjustable financial chart
Replies: 9
Views: 10581

Re: Scrollable, autoadjustable financial chart

Does the chart look ok bewfore you start the scrolling? My assumption is that as soon as you start to pan the chart by dragging the mouse, the values of the range axis are set to fixed values. This, in turn, disables the auto range calculation mechanism. Try callinf setRangePannable(false) on the XY...
by paradoxoff
Thu Jul 13, 2017 6:39 pm
Forum: JFreeChart
Topic: Piechart Size does not take into account strokesize
Replies: 1
Views: 2646

Re: Piechart Size does not take into account strokesize

JFreeChart does not correct/adjust the sizes of any shape (including the slixes of a pie chart) by taking the outline stroke into account.
You will have to implement that correction of your own.
by paradoxoff
Thu Jul 13, 2017 6:35 pm
Forum: JFreeChart
Topic: Scrollable, autoadjustable financial chart
Replies: 9
Views: 10581

Re: Scrollable, autoadjustable financial chart

Is the intial chart wrong, or does it get wrong after you try to update? I am asking because I am not seeing code that updates the chart.
by paradoxoff
Thu Jul 13, 2017 6:22 pm
Forum: JFreeChart
Topic: Setting Range Min and Max values on condition
Replies: 3
Views: 5338

Re: Setting Range Min and Max values on condition

A ValueAxis always has a non-null value range. The upper and lower limit of this can either be set manually, or can be determined automatically based on the range of the dataset. If the values are set manually, the "auto range calculation mechanism" might be deactivated. What I meant was if you do n...
by paradoxoff
Wed Jul 12, 2017 7:57 pm
Forum: JFreeChart
Topic: Setting Range Min and Max values on condition
Replies: 3
Views: 5338

Re: Setting Range Min and Max values on condition

I do not know Jasper reports, but the best solution would be to skip that section if a special condition is met.
by paradoxoff
Wed Jul 12, 2017 12:02 pm
Forum: JFreeChart
Topic: Change size of legend items for large charts
Replies: 2
Views: 3946

Re: Change size of legend items for large charts

You can manually set the legend shape by either calling setLegendShape(int series, Shape theShape) or setBaseLegendShape(Shape theShape). Note that the latter will only have an effect for series where lookupLegendShape(int series) returns null.