Solved

JFreeChart: Time Series Chart - Set plot line invsible

Posted on 2011-09-28
5
732 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 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: 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

623 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