Solved

JFreeChart: Time Series Chart - Set plot line invsible

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
object oriented programming comparison 5 77
even odd program using while loop 3 60
Windows 10 IE Certificate Issue 10 51
jboss 7.1 start up error 1 35
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

856 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