AnnualDataSummary: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
373 bytes removed ,  21:01, 13 April 2018
no edit summary
No edit summary
No edit summary
Line 134: Line 134:
Example of a row,....
Example of a row,....
<pre>['maxtemp','Max Temp','Maximum Temperature',true]</pre>  
<pre>['maxtemp','Max Temp','Maximum Temperature',true]</pre>  
*The first element, in this case 'maxtemp' -- is a system variable to identify the data set, used for the URL parameter option, used for the ''Switch'' coding (so any chnage here needs to be reflected there), and tested elsewhere in the code (in the Rainfall and Windgust data sets a particular style is applied to any zero values, so their system variables should not be changed just in this list).
*The first element, in this case 'maxtemp' -- is a system variable to identify the data set, used for the URL parameter option, and tested elsewhere in the code (in the Rainfall and Windgust data sets a particular style is applied to any zero values, so their system variables should not be changed just in this list).


However, if you add a new dataset, then your new first element should be a unique identifier.
However, if you add a new dataset, then your new first element should be a unique identifier.
Line 143: Line 143:
*Finally, 'true' will display this button at the top; 'false' will hide it. Therefore, if you do not wish to allow users to jump to the 'Rainfall data set' change the 'true' to 'false' in the 'rainfall' element of the variable. (true/false MUST be lowercase)
*Finally, 'true' will display this button at the top; 'false' will hide it. Therefore, if you do not wish to allow users to jump to the 'Rainfall data set' change the 'true' to 'false' in the 'rainfall' element of the variable. (true/false MUST be lowercase)


(NOTE: [[User:Sfws|Sfws]] 12:22, 31 December 2012 (UTC)
The ''switch'' part of the coding identifies the columns in dayfile.txt for the values to be displayed.  If you wish to add new data sets then see the alternative JavaScript version in the forum for more explanation about this coding.)
<br>
<br>


5,838

edits

Navigation menu