Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
pywws-page/_graph_templates/includes/hourly_rain_sum_dual.xml

25 lines
715 B
XML

<?xml version="1.0" encoding="utf-8"?>
<plot>
<title>Niederschlag (㎜)</title>
<yrange>0, 6</yrange>
<y2range>0, 30</y2range>
<grid>ytics</grid>
<ylabel>stündlich</ylabel>
<!--y2label>gesamt</y2label-->
<source>hourly</source>
<subplot>
<colour>rgb "#2196f3"</colour>
<style>box</style>
<xcalc>data['idx'].replace(minute=30, second=0)</xcalc>
<ycalc>data['rain']</ycalc>
<title>stündlich</title>
</subplot>
<subplot>
<colour>rgb "#283593"</colour>
<axes>x1y2</axes>
<xcalc>data['idx'].replace(minute=30, second=0)</xcalc>
<ycalc>data['rain'] + last_ycalc</ycalc>
<title>gesamt</title>
</subplot>
</plot>