Customize the chart decoration to draw a group of notes around a value of the abscissa axis

Article ID: 2288
Last updated: 29 May, 2018
Article ID: 2288
Last updated: 29 May, 2018
Revision: 3
Views: 752
Posted: 23 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to customize the chart decoration to draw a group of notes around a value of the abscissa axis?

Answer

This sample illustrates how to subclass the IlvChartDecoration class to add customized decorations to a JViews chart.

The details about the IlvChartDecoration usage are described in the JViews Charts documentation in the Decorations section, including commented sample code and details about the chart decorations mechanism.

The purpose of this sample is to render a group of notes around a particular point of the abscissa scale of a Cartesian chart. Each note is boxed independently and connected with a line to the value in the scale intended to be described by the notes.

Chart Decortation

Two instances of the custom decoration, each attached to a different value of the abscissa axis,
and filled with a different set of notes.

ChartDecorationSample.java

Note: In order to run this sample with JViews 8.7 and newer, you must call the ilog.views.util.IlvProductUtil.DeploymentLicenseRequired method with the appropriate argument. See the General information > Deployment licenses > Declaring the use of IBM ILOG JViews services section in the documentation for more information.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2288
Last updated: 29 May, 2018
Revision: 3
Views: 752
Posted: 23 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Attached files

Also listed in


Others in this category