Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar}
----

h3. Line Chart
{anchor:linechart}

The line chart simply plots a set of values on a line for each series in the given dataset. 

h5. Dataset Guidelines

The line chart expects its data as a [categorical dataset|The Categorical Dataset].

h5. Required Properties

The only property a line chart requires is the appropriate chart-type.
{code:XML}
<chart-type>LineChart</chart-type>
{code} 

The optional chart properties that are supported for a line chart are listed in the [Chart Properties Reference].

h5. Example

The following chart definition will produce the chart in the example below.

{code:XML}
<chart>
	
	<chart-type>LineChart</chart-type>
	<title>Sample Chart</title>
	<domain-label-rotation>.7</domain-label-rotation>
	<markers-visible>true</markers-visible>
	<chart-background type="color">#FFFFFF</chart-background>
	<plot-background type="color">#FFFFFF</plot-background>
	<height>550</height>
	<width>650</width>
	<color-palette>
		<color>#336699</color>
		<color>#99CCFF</color>
		<color>#999933</color>
		<color>#666699</color>
		<color>#CC9933</color>
		<color>#006666</color>
		<color>#3399FF</color>
		<color>#993300</color>
		<color>#CCCC99</color>
		<color>#666666</color>
		<color>#FFCC66</color>
		<color>#6699CC</color>
		<color>#663366</color>
		<color>#9999CC</color>
		<color>#CCCCCC</color>
		<color>#669999</color>
		<color>#CCCC66</color>
		<color>#CC6600</color>
		<color>#9999FF</color>
		<color>#0066CC</color>
		<color>#99CCCC</color>
		<color>#999999</color>
		<color>#FFCC00</color>
		<color>#009999</color>
		<color>#99CC33</color>
		<color>#FF9900</color>
		<color>#999966</color>
		<color>#66CCCC</color>
		<color>#339966</color>
		<color>#CCCC33</color>
	</color-palette>
	
    <include-legend>false</include-legend>
</chart>
{code}

!sample_line_chart.PNG!