Datasets and Renderers

Datasets are used to apply different rendering settings to different sets of measures in a chart. Each dataset can use its own axis configuration.

Two metrics styled with two different datasets in the same chart.

<chart type="TE" id="DATASETS_EXAMPLE">
	<dataset renderer="LINE" rangeAxisId="AXIS_RAW">
		<measure color="BLUE" alpha="200" label="Source Line of Code">SLOC
			<forecast>
				<version value="7777" timeValue="DATE(2014,08,01)" label="V3" />
			</forecast>
		</measure>
	</dataset>

	<dataset renderer="BAR" rangeAxisId="AXIS_KLOC">
		<measure color="ORANGE" alpha="200" label="Line of Code">LC
			<forecast>
				<version value="9999" timeValue="DATE(2014,08,01)" label="V3" />
			</forecast>
		</measure>
	</dataset>

	<rangeAxis id="AXIS_RAW" label="LC" color="BLUE" />
	<rangeAxis id="AXIS_KLOC" label="SLOC (KLOC)" color="ORANGE" />
</chart>

There are 7 basic types of renderers. Each one has can be prefixed with the STACKED_ modifier to stack data series on top of each other, and suffixed with the _100 modifier that displays data series as percentages:

BAR

BAR

STACKED_BAR

STACKED_BAR_100

LINE

LINE

STACKED_LINE

STACKED_LINE_100

STEP

STEP

STACKED_STEP

STACKED_STEP_100

SPLINE (new in 17.0)

SPLINE

STACKED_SPLINE

STACKED_SPLINE_100

AREA

AREA

STACKED_AREA

STACKED_AREA_100

AREA_STEP (new in 17.0)

AREA_STEP

STACKED_AERA_STEP

STACKED_AREA_STEP_100

AREA_SPLINE (new in 17.0)

AREA_SPLINE

STACKED_AREA_SPLINE

STACKED_AREA_SPLINE_100

The dataset element accepts the following attributes:

Chart axes can be defined using the rangeAxis element, which accepts the following attributes: