.. include:: ../../../Includes.txt .. _usingAdvancedTemplates: ======================== Using Advanced Templates ======================== SAV Charts provides more complex templates. They can display up to nine items on the same chart. The colors are defined in a specific template, either `FluidParser/DefaultColors.fluid` for the Fluid Parser or `DefaultColors.xml` for the XML Parser. These colors were chosen to provide contrast between items. To illustrate the use of advanced templates, consider the `FluidParser/LineChartAdvanced.fluid` or the XML Parser `LineChartAdvanced.xml` templates. Enter the following code in the template section, then save and go to the front-end. .. tabs:: .. tab:: Fluid Parser .. code-block:: xml EXT:sav_charts/Resources/Private/Templates/ChartsExamples/FluidParser/LineChartAdvanced.fluid .. tab:: XML Parser .. code-block:: xml .. figure:: ../../../Images/Tutorial/LineChartAdvancedInFrontend.png :width: 60% The chart has nine superimposed curves with the same data, as well as predefined colors, labels, and a title. Click on the legend to hide a curve. In the data section enter the following code, save, and go to the front-end. .. tabs:: .. tab:: Fluid Parser .. code-block:: xml .. tab:: XML Parser .. code-block:: xml .. figure:: ../../../Images/Tutorial/LineChartAdvancedWithOneCurveInFrontend.png :width: 60% Modify the data section as follows: .. tabs:: .. tab:: Fluid Parser .. code-block:: xml 1, 2, 3, 4, 5, 6, 7 .. tab:: XML Parser .. code-block:: xml 1, 2, 3, 4, 5, 6, 7 Enter the following code in the marker section, then save and go to the front-end. .. tabs:: .. tab:: Fluid Parser .. code-block:: xml A line chart with two curves Curve 1 Curve 2 .. tab:: XML Parser .. code-block:: xml A line chart with two curves Curve 1 Curve 2 .. figure:: ../../../Images/Tutorial/LineChartAdvancedWithTwoCurvesInFrontend.png :width: 60%