.. include:: ../../Includes.txt
.. _usingAdvancedTemplates:
========================
Using Advanced templates
========================
More complex templates are provided with SAV Charts. They can display
upto to 9 items in the same charts.
Colors are defined in a specific template ``DefaultColors.xml``
which were chosen to provide constrast between items.
Let us illustrate the use of advanced templates with, for example,
the template ``LineChartAdvanced.xml``.
In the template section enter the following code, save and go to the frontend.
.. code::
typo3conf/ext/sav_charts/Resources/Private/Templates/ChartsExamples/LineChartAdvanced.xml
.. figure:: ../../Images/Tutorial/LineChartAdvancedInFrontend.png
The chart has 9 superposed curves with the same data, predefined
colors, predefined labels and a predefined title.
In the data section enter the following code, save and go to the frontend.
.. code::
.. figure:: ../../Images/Tutorial/LineChartAdvancedWithOneCurveInFrontend.png
Modify the data section as follows:
.. code::
1, 2, 3, 4, 5, 6, 7
In the marker section, enter the following code, save and go to the frontend.
.. code::
A line chart with two curves
Curve 1
Curve 2
.. figure:: ../../Images/Tutorial/LineChartAdvancedWithTwoCurvesInFrontend.png