Search found 10 matches

by poppins
Thu Oct 06, 2005 5:38 am
Forum: JFreeChart
Topic: How to find the physical location of an axis.
Replies: 3
Views: 4369

How to find the physical location of an axis.

Thanx Daniel, but use of these methods requires a 'Point2D' and 'Point' instance, which i don't know how to construct at that point of time. I have a Plot instance, a Rectangle2D instance and ValueAxis and DomainAxis instances.

regards,

nitin
by poppins
Wed Oct 05, 2005 8:10 am
Forum: JFreeChart
Topic: How to find the physical location of an axis.
Replies: 3
Views: 4369

How to find the physical location of an axis.

Ok, i found it. It goes as follows.. //.... find origin x = plot.getRangeAxisEdge().coordinate(dataArea, RectangleEdge.LEFT); y = plot.getRangeAxisEdge().coordinate(dataArea, RectangleEdge.BOTTOM); //..use origin Or if someone has a better way to do it, plz post it here. Thanx.
by poppins
Wed Oct 05, 2005 7:28 am
Forum: JFreeChart
Topic: How to find the physical location of an axis.
Replies: 3
Views: 4369

How to find the physical location of an axis.

Q1] How to find (x,y) coordinate of the origin of a plot.

Code: Select all


 |
 |
 |
 |
 |
 |____________________
 (x,y)

Q2] How to find the hieght/width of the plot ?
by poppins
Wed Oct 05, 2005 6:25 am
Forum: JFreeChart
Topic: color of bars in barchart
Replies: 2
Views: 3004

color of bars in barchart

If you are using a CategoryPlot to draw the chart, then you can use setSeries() method of the CategoryItemRenderer class. It will allow you define colors for each different series., hence making the bars look different.
by poppins
Tue Oct 04, 2005 1:24 pm
Forum: JFreeChart
Topic: Changing color of Stacked Bar
Replies: 1
Views: 3054

Changing color of Stacked Bar

For every different series in the chart, you see a diiferent colored bar. So, if there are two series then their colors would be Blue and Red by default. Changing this default setting is simple, eg, if you are using a CategoryPlot to draw a stacked bar chart, then //get the renderer from CategoryPlo...
by poppins
Tue Oct 04, 2005 1:04 pm
Forum: JFreeChart
Topic: FREQUENTLY ASKED QUESTIONS
Replies: 12
Views: 91201

FREQUENTLY ASKED QUESTIONS

Can we have a categorized FAQ. It will be easier to jump to a certain category of questions rather than browsing the whole list. It may have example links to previous posts as well.

regards,
by poppins
Tue Oct 04, 2005 12:58 pm
Forum: JFreeChart
Topic: Overlaping the X-axis lables when using CategoryAxis
Replies: 2
Views: 3552

Overlaping the X-axis lables when using CategoryAxis

Try "categoryAxis.setCategoryMargin(x)" to allow some gap between categories if you are using a CategoryPlot.
by poppins
Tue Sep 20, 2005 1:19 pm
Forum: JFreeChart
Topic: Overlay Problem with StackedVerticalBar and Line Chart
Replies: 1
Views: 3501

Overlay Problem with StackedVerticalBar and Line Chart

See, if we create overlaid bar-line charts using one CategoryPlot and two CategoryData sets (one for Bar and one for Line), we can define rendering orders of datasets using "setDatasetRenderingOrder" method of CategoryPlot class. Which takes care of what overlays what. I don't know if we can define ...
by poppins
Tue Sep 20, 2005 1:00 pm
Forum: JFreeChart
Topic: Annotations and CategoryPlot
Replies: 2
Views: 3645

More info

Adding to the previous problem: The distance in pixels means: IF (x,y) is the starting location of annotation on the plot, then x is the distance from RangeAxis and y is the distance from DomainAxis, both in pixels. Given the fact that we only have category names as column keys in CategoryPlot, is t...
by poppins
Tue Sep 20, 2005 12:55 pm
Forum: JFreeChart
Topic: Annotations and CategoryPlot
Replies: 2
Views: 3645

Annotations and CategoryPlot

I have to create this effect: A 3D bar chart with pointer annotations. The condition is that i have to use a CategoryPlot, and a Bar3DRenderer to draw the chart. | | | | | | | | _________ | | /_________/| | | | | | | | | <--------------- Your current coverage | | | | | | | | | | | |____________| | |...