franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1:

Introduction

franta-hg@1:

Cewolf can be used inside a Servlet/JSP based web franta-hg@1: application to embed complex graphical charts of all kinds (e.g. line, franta-hg@1: pie, bar chart, plots, etc.) into a web page. Therefore it provides a franta-hg@1: full featured tag library to define all properties of the chart (colors, franta-hg@1: strokes, legend, etc.). Thus the JSP which embedds the chart is not franta-hg@1: polluted with any java code. Everything is described with XML conform franta-hg@1: tags.

franta-hg@1:

Cewolf is based on JFreeChart and franta-hg@1: uses it's rendering engine to render the final chart image into the franta-hg@1: clients response stream. No files are created on server side. Everything franta-hg@1: is based on lightweight session objects and dynamic data analysis. franta-hg@1: Cewolf consists of one servlet which handles the chart rendering and a franta-hg@1: taglibrary which translates the chart definition included in the JSP franta-hg@1: into an HTML img tag which consults the rendering servlet for retrieval franta-hg@1: of the appropriate chart.

franta-hg@1:

Simce the project has been funded in the middle of 2002 there have franta-hg@1: been more then 150.000 page views and 16.000 downloads franta-hg@1: (Sourceforge activity max: >99,7%).

franta-hg@1:

franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1: franta-hg@1:
Fully free and open100% Java compliant
franta-hg@1:
    franta-hg@1:
  • LGPL license
  • franta-hg@1:
  • no charges
  • franta-hg@1:
  • no restrictions
  • franta-hg@1:
  • Support on SourceForge Forums
  • franta-hg@1:
  • short development and upgrade circles
  • franta-hg@1:
franta-hg@1:
franta-hg@1:
    franta-hg@1:
  • no usage of native libraries
  • franta-hg@1:
  • should run in every J2EE compliant server or servlet franta-hg@1: container
  • franta-hg@1:
  • extensive usage of available open source projects
  • franta-hg@1:
franta-hg@1:
Full featured Chart Tag LibraryHuge number of different Charts
franta-hg@1:
    franta-hg@1:
  • no java coding inside the JSP needed
  • franta-hg@1:
  • XML description of a chart
  • franta-hg@1:
  • design time validation of chart tags
  • franta-hg@1:
  • extensive tag documentation
  • franta-hg@1:
franta-hg@1:
franta-hg@1:
    franta-hg@1:
  • Line [XY]
  • franta-hg@1:
  • [3D] Pie
  • franta-hg@1:
  • [3D] Horizonal Bar
  • franta-hg@1:
  • [3D] Vertical [XY] Bar
  • franta-hg@1:
  • [3D] Stacked Vertical Bar
  • franta-hg@1:
  • Area [XY]
  • franta-hg@1:
  • Scatter Plot
  • franta-hg@1:
  • Candlestick
  • franta-hg@1:
  • High Low
  • franta-hg@1:
  • Gantt
  • franta-hg@1:
  • Meter
  • franta-hg@1:
  • Overlaid
  • franta-hg@1:
  • Combined
  • franta-hg@1:
franta-hg@1:
franta-hg@1:

franta-hg@1:

franta-hg@1:

Example

franta-hg@1:

You can simply define a chart by including a chart tag into your JSP franta-hg@1: like this:

franta-hg@1:
<cewolf:chart 
id="XYChart"
type="xy"
title="XYChart"
<cewolf:gradient>
<cewolf:point x="0" y="0" color="#FFFFFF"/>
<cewolf:point x="0" y="300" color="#C8C8C8"/>
</cewolf:gradient>
<cewolf:data>
<cewolf:producer id="xyData"/>
</cewolf:data>
</cewolf:chart>
<cewolf:img chartid="XYChart" renderer="cewolf" width="400" height="300"/>
franta-hg@1:

This results in a rendered chart like this:

franta-hg@1: examplechart franta-hg@1:

As you can see only the view is defined in the JSP page. The model franta-hg@1: is produced by a so called DataProducer which must be available in the franta-hg@1: pageContext of the JSP.

franta-hg@1: SourceForge Logo franta-hg@1: franta-hg@1: