Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

JFreeChart: Time Series Chart - Set plot line invsible

Posted on 2011-09-28
5
Medium Priority
?
758 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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: 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

688 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