Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart2D for Java
 Variable chart background
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

rixmith

33 Posts

Posted - 21 Oct 2017 :  21:01:42  Show Profile  Reply with Quote
I would like to add a highlight mechanism to my chart. For a simple line plot, what approach would you recommend to produce a different background color for the section of the chart between two given x values.
For example I would like to use the standard background color except when X is between 16 and 22, then I would use a different background color. Is such behavior possible perhaps using a very wide vertical line and a transparent color?



Rick

rixmith

33 Posts

Posted - 22 Oct 2017 :  11:09:42  Show Profile  Reply with Quote
I think I found my starting point in the Multiline class of the examples.multiline package.

Rick
Go to Top of Page

quinncurtis

1551 Posts

Posted - 23 Oct 2017 :  09:39:25  Show Profile  Reply with Quote
Use the ChartShape class to display a filled rectangle in the current chart. The Multiline.MultilinePlots example is the correct one to look at.
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07