| | | | Browse by category |
Question
How can I display a threshold (as an horizontal line) in my chart?
Answer
The JViews Charts package provides graphical decorations that you can add to your chart to enhance the presentation.
The ilog.views.chart.graphic.IlvDataIndicator
class is a predefined decoration that acts as a graphical indicator of a data value or a data range. In order to create a horizontal line for a Cartesian chart, you simply have to create an indicator associated to a specific y-value.
For more information, consult the "Rogue Wave JViews Charts Vxxx > Programmer's documentation > Developing with the JViews Charts SDK" section of the JViews Enterprise documentation.
Take a look at the sample in "Rogue Wave JViews Charts Vxxx > Samples and code examples > JViews Charts samples > Connecting to the data".
There you will find an extensive demonstration of that feature.