Solved

JFreeChart: Time Series Chart - Set plot line invsible

Posted on 2011-09-28
5
689 Views
Last Modified: 2012-05-12
Can we make the plot line go invisible?

If yes, please provide some sample code. Thanks!
0
Comment
Question by:dshrenik
  • 4
5 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 36720369
If you want to have just the lines in the plot to be invisible set them to samwe color as the background
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 36720381
just get
plot.getBackgroundPaint()

and assign this paint to the series which you want to be invisible, as you assigned color to them before
0
 

Author Comment

by:dshrenik
ID: 36720450
But, can I explicitly set the visible=false?
This way, I don't have make changes when I change the background color.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36720472
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36720517

maybe even one method for all series:

 public void setBaseSeriesVisible(boolean visible);
Calls setBaseSeriesVisible(visible, true). See the next method description for details.

But this may not work, as:

The base  flag, which defaults to true, applies when there is no override
flag set and no series level flag set

(see page 468 of the manual).
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now