Hello!
I am using weewx 3.9.2 and highcharts.
It is working very well. :)
How can I get german letters into week.json.tmpl?
Instead of
"windplot": {"series":
{"windSpeed": {"name": "Windstaerke", "data": $windSpeedWeekjson},
"windGust": {"name": "Boeen", "data": $windGustWeekjson}},
"units": "$unit.label.windSpeed"#slurp
I want to get
"windplot": {"series":
{"windSpeed": {"name": "Windstärke", "data": $windSpeedWeekjson},
"windGust": {"name": "Böen", "data": $windGustWeekjson}},
"units": "$unit.label.windSpeed"#slurp
if I write it as above into week.json.tmpl, then week.json will
not be created.
##errorCatcher Echo
#encoding UTF-8
##And how can I change in highchartplot the text from "hamburger"-menu,
where now is standing "Chart context menu"?
Some parts I already get changed by putting into plots.js:
var highchartsOptions = Highcharts.setOptions({
lang: {
loading: 'Lade...',
months: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
weekdays: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
exportButtonTitle: "Exportieren",
printButtonTitle: "Drucken",
rangeSelectorFrom: "von",
rangeSelectorTo: "bis",
rangeSelectorZoom: "Zeitraum",
downloadPNG: 'Download als png',
downloadJPEG: 'Downlaod als jpeg',
downloadPDF: 'Download als pdf',
downloadSVG: 'Download als svg',
resetZoom: "Reset",
resetZoomTitle: "Reset",
thousandsSep: ",",
decimalPoint: '.'
}
}
);
But there is left in "Chart Context Menu" (this itself):
"View in fullscreen" and "Print chart"
and in the charts, where on the right top corner can be input
the date "from" and the date "to", that in can be done in
german notation dd.mm.yyyy?
Regards, Astrid
>#encoding UTF-8
works. :)
Gary
Gary
<script src="../scripts/js/theme.js" type="text/javascript"></script>
Please provide a copy of that line exactly as it appears in the file.
exporting: {
buttons: {
contextButton: {
menuItems: ["printChart", "separator", "downloadPNG", "downloadJPEG", "downloadPDF", "downloadSVG"]
}
}
}