Interaction

Introduction

In Davisor Chart all renedered objects (lines, texts, areas, and especially datapoints) can be made interactive. This means that all kind of special properties like hyperlinks and description texts can be annotated to those objects. This is made by giving annotation to data points or data series, or by using a special annotated paint to draw or to fill objects. These annotations can be changed to interactions currently in three ways:

SVG

SVG (Scalable Vector Graphics) represents images as a bunch of objects. Those objects may contain a hyperlink and a title among others. Davisor Chart adds them.

HTML imagemap

One part of Davisor Chart is the custom JSP (Java Server Pages(TM)) tag library. If there are annotations in the created chart, the <chart:image> JSP tag will create also a HTML imagemap with proper attributes associated to area coordinates.

Java API

In order to add interaction into a Java application or into a Web Service the Java API can be used. A list of annotated objects can be got by calling

com.davisor.graphics.chart.Chart.getAnnotatedShapes()
.