Summary

Normally, line style and colour are set per parameter in the file TimeSeriesDisplayConfig.xml. However, it is possible (only in the pre-defined displays) to override these settings per subplot. In addition, it is also possible to set the font-size or the axis titles per plot.

Config Options

The following options can be set per timeseriesSet in the DisplayGroups file:
• color: set the color of the line(s) defined in the next timeseriesSet
• lineStyle: set the style of the line(s) defined in the next timeseriesSet

In addition, the font size of the legend, the axis-titles and the tick-marks can be set per subplot:
• legendFontSize (integer, defaults to 11)
• axisTitleFontSize (integer, defaults to 10)
• tickLabelFontSize(integer, defaults to 9)

Configuration steps

Changing line-colours in an existing file:

• Open the DisplayGroups.xml and go to the timeSeriesSet for which you want to set the new line colours. Make sure you enter the color and lineStyle elements before the timeseriesSet you want to change:

<plot id="Performance_RadarActuals">
		<subplot>
			<timeSeriesSet>
		<moduleInstanceId>CatchmentAveragePrecipitation</moduleInstanceId>
				<valueType>scalar</valueType>
				<parameterId>P.catchment</parameterId>
				<locationSetId>CatAvg</locationSetId>
				<timeSeriesType>external historical</timeSeriesType>
				<timeStep unit="minute" multiplier="60"/>
				<relativeViewPeriod unit="hour" start="-168" end="0" endOverrulable="true"/>
				<readWriteMode>read only</readWriteMode>
			</timeSeriesSet>
		</subplot>

• Insert the preferred colour and/or linestyle (BTW a list of allowed colours is given in http://public.wldelft.nl/display/FEWSDOC/A+Colours+Available+in+DELFT-FEWS:

<plot id="Performance_RadarActuals">
		<subplot>
			<color>beige</color>
			<lineStyle>bar</lineStyle>
			<timeSeriesSet>
				<moduleInstanceId>CatchmentAveragePrecipitation</moduleInstanceId>
				<valueType>scalar</valueType>
				<parameterId>P.catchment</parameterId>
				<locationSetId>CatAvg</locationSetId>
				<timeSeriesType>external historical</timeSeriesType>
				<timeStep unit="minute" multiplier="60"/>
				<relativeViewPeriod unit="hour" start="-168" end="0" endOverrulable="true"/>
				<readWriteMode>read only</readWriteMode>
			</timeSeriesSet>
		</subplot>

The following options are allowed in the lineStyle element:
• none
• solid
• solid;thick
• dashed
• dashed;thick
• dotted
• dotted;thick
• dashdot
• dashdot;thick
• bar
• area

Setting the font size in a subplot

  • Open the DisplayGroups.xml and go to the subplot for which you want to set the font sizes. Make sure you enter the sizes before the subplot you want to change:

    <plot id="Performance_RadarActuals">
    <subplot>
    <color>beige</color>
    <lineStyle>bar</lineStyle>
    <timeSeriesSet>
    	<moduleInstanceId>CatchmentAveragePrecipitation</moduleInstanceId>
    	<valueType>scalar</valueType>
    	<parameterId>P.catchment</parameterId>
    	<locationSetId>CatAvg</locationSetId>
    	<timeSeriesType>external historical</timeSeriesType>
    	<timeStep unit="minute" multiplier="60"/>
    	<relativeViewPeriod unit="hour" start="-168" end="0" endOverrulable="true"/>
    	<readWriteMode>read only</readWriteMode>
    </timeSeriesSet>
    
  • Now add the legendFontSize, axisTitleFontSize, tickLabelFontSize and/or thresholdLabelFontSize elements just before the subplot for which you want to change the settings. Please not that the order of these elements is important: first the legendFontSize element, next the axisTitleFontSize element, next again the tickLabelFontSize and finally the thresholdLabelFontSize  element:

    <plot id="Performance_RadarActuals">
    <legendFontSize>12</legendFontSize>
    <axisTitleFontSize>10</axisTitleFontSize>
    <tickLabelFontSize>10</tickLabelFontSize
    <subplot>
    	<color>beige</color>
    	<lineStyle>bar</lineStyle>
    	<timeSeriesSet>
    		<moduleInstanceId>CatchmentAveragePrecipitation</moduleInstanceId>
    		<valueType>scalar</valueType>
    		<parameterId>P.catchment</parameterId>
    		<locationSetId>CatAvg</locationSetId>
    		<timeSeriesType>external historical</timeSeriesType>
    		<timeStep unit="minute" multiplier="60"/>
    		<relativeViewPeriod unit="hour" start="-168" end="0" endOverrulable="true"/>
    		<readWriteMode>read only</readWriteMode>
    		</timeSeriesSet>
    
  • No labels