Chart Geometry

Was curious if there is a way to determine the location of the margin on your bar chart component (I have to overlay a custom label at the bottom).

Looking at the image below, can I determine where the arrow is pointing?

Yep, you have to dig into the JFreeChart API to find it. Here is some code that would print out that point:

barChart = event.source.parent.getComponent("Bar Chart") plotInfo = barChart.chartRenderingInfo.plotInfo rect = plotInfo.dataArea print "Plot origin: (%d,%d)" % (int(rect.x), int(rect.y+rect.height))

Hope this helps,

Outstanding! That will help a lot. Thanks.