[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 925
  • Last Modified:

JFreeChart: emphasize grid line

I have a JFreeChart with a couple plots (see attached)
I would like to emphasize the horizontal "0" line, ie make it bold and/or darker.
I suppose one way to make another plot with points (0,0) and (170000,0), but perhaps there is a better way.
Screen-shot-2011-05-10-at-10.11..png
0
allelopath
Asked:
allelopath
  • 3
1 Solution
 
for_yanCommented:
This is a JFreeChart Manual
On page 73 they draw a chart with one additional horizonatl plot-axis.
They have the code rtight there.
You can check how they do it.
Thsi would probably be the prefereable way, as this the manual.


jfreechart-1.0.13-A4.pdf
0
 
for_yanCommented:
Well, it looks like they do it as additional series.
Still, manual is not a bad thing - maybe you'll find something better there.
0
 
for_yanCommented:

This also shows how to add aconstant horizontal line
and also change its thickness, etc.
http://www.infocaptor.com/dashboard/add-threshold-line-in-a-line-chart-line-shapes-line-customizations-jfreechart
0
 
allelopathAuthor Commented:
I guess there's no way to actually change the XYPlot.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now