<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
  <header>
    <title>Welcome to the org.apache.forrest.plugin.output.Chart Plugin</title>
  </header>
  <body>
    <section>
      <title>Apache Forrest - org.apache.forrest.plugin.output.Chart Plugin</title>
      <p>
        This plugin provides charting for Apache Forrest by integrating
        <a href="http://jcharts.sourceforge.net/">JChart</a> into Forrest.
      </p>
      <p>
        <a href="samples/index.html">View a set of sample graphs</a>.
      </p>
    </section>
    <section>
      <title>Generating a Chart</title>
      <p>
        To generate a chart simply use a URI in the following form:
      </p>
      <source>/do/draw_chart/PATH_TO_CHART/CHART_NAME.CHART_TYPE</source>
      <p>
        Where <code>PATH_TO_CHART</code> is the normal path to the
        <a href="documentation/index.html#chartDescriptor">chart descriptor</a>,
        <code>CHART_NAME</code> is the name of the
        <a href="documentation/index.html#chartDescriptor">chart descriptor
        file</a> (without the <code>.xml</code> extension, and
        <code>CHART_TYPE</code> is how you want the format in which the chart is
        to be returned (for example, <code>.png</code>, <code>.jpg</code> or
        <code>.svg</code>).
      </p>
    </section>
  </body>
</document>
