Bar graph with multiple data sources

51 views
Skip to first unread message

jszit...@gmail.com

unread,
Jun 3, 2021, 7:39:20 PM6/3/21
to weewx-user

I have two rain gauges and I am trying to show them in the same bar graph.  They both plot, but the plot points (bars) are stacked on each other.  This works when one gauge has a higher value than the other, but not vice-versa.  Unfortunately all of the multiple plot examples in the customization guide are for actual plot lines.  Is there a way to plot the bars next to each other, or maybe control the width?  My current code in skin.conf is:

        [[[dayrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                label = Rain (hourly total)
            [[[[RSrain]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                data_type = rain
                data_binding = RSt_binding
                label = RS

Thanks,
Jonathan

Tom Keffer

unread,
Jun 3, 2021, 7:53:10 PM6/3/21
to weewx-user
Unfortunately, no, the plotting engine cannot do this. A line is the best we can do.



--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/efc45998-f613-4009-8a47-82491d9b0772n%40googlegroups.com.

Chuck Rhode

unread,
Jun 4, 2021, 12:00:23 PM6/4/21
to weewx...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 3 Jun 2021 16:39:20 -0700 (PDT)
"jszit...@gmail.com" <jszit...@gmail.com> wrote:

> This works when one gauge has a higher value than the other,
> but not vice-versa.

The Phenology extension to WeeWX comes equipped with an alternate image
generator that does transparency. Bars would overlay one another, but
you could color them so that they show through one another ... I think.

o http://lacusveris.com/Phenology/phenology_image_generator.shtml#4.7.2

- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 83° — Wind W 16 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCYLpOBQAKCRBg2/xipKOW
UtmpAJ4u89dQXIXORGn/0f6UNURXTbCfrQCfXPh7Dv8Zg8P9RyvslMQnixr2o/M=
=NkTb
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages