JSF Chart Creator - now with ImageMaps!

I recently updated the JSF-Comp Chart Creator component to include image map support. All charts now have capabilties for custom links on each section of the chart. All customization can be handled through the tag atributes.

New attributes:

  • action
  • series
  • section

The usemap attribute must start with a # (i.e. usemap="#myMap"). For action, just input the page to link to, section and series are just parameters that are built into jfreeChart. I am currently working on drill downs, along with a few other attributes (like the abiltiy to set the range), for next release.

Usage

Besides the new attributes and an h:output tag for your imagemap string, there is nothing else you need to know apart from this documentation

Download the jar here


        <ad:chart id="chart2" 
                  datasource="#{chartCreator.cellBar}" 
                  type="bar" 
                  height="100" 

                  is3d="false" 
                  orientation="horizontal" 
                  width="300" 
                  antialias="true" 
                  title="" 

                  xlabel="" 
                  ylabel="" 
                  legend="false" 
                  usemap="#chart2_map" 
                  action="this.jsf" 

                  series="wes1" 
                  section="wes2" 
                  styleClass="wesChart"></ad:chart> 
        <h:outputText escape="false" value="#{chart1_map}"/>