AnnualDataSummary: Difference between revisions

m
→‎Localization / Language: added note about SWITCH code to end
m (Revising mention of alternative JavaScript version to better fit in with recent revisions on this page re PHP (also some spelling corrections and clarifications to rest of page))
m (→‎Localization / Language: added note about SWITCH code to end)
Example of a row,....
<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).
 
However, if you add a new dataset, then your new first element should be a unique identifier.
*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>
 
5,838

edits