Align Belchertown subtitle

180 views
Skip to first unread message

Geni

unread,
Apr 16, 2022, 11:19:31 AM4/16/22
to weewx-user
Hi, where and how to center the subtitle to the title
is
belch01.jpg
should
belch02.jpg
Geni

vince

unread,
Apr 16, 2022, 12:31:19 PM4/16/22
to weewx-user
You have to tell us more.  Which version of Belchertown ?   What page is that screen image from ?   I don't see any graphs that look like that.  Did you add a custom graphs.conf ?

Doug Jenkins

unread,
Apr 16, 2022, 12:36:21 PM4/16/22
to weewx...@googlegroups.com
Geni:

Here is the sample that displays the chart appropriately (See Below). You can find this information in the Charts wiki

Belchertown Charts Documentation · poblabs/weewx-belchertown Wiki (github.com)

If you still need assistance, we are going to need a copy of your graphs.conf file in the /skins/Belchertown folder of your WeeWx installation.
[raintotals]
    title = Rain Totals by Month
    show_button = true
    button_text = Rain Totals
    type = column
    time_length = all
    aggregate_type = max
    aggregate_interval = 86400 # 1 day

    [[rainmonthtotals]]
        title = Historical Rain Totals By Month
        subtitle = Rain Totals for All Months for All Time
        xAxis_groupby = month
        xAxis_categories = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
        [[[rainTotal]]]
            name = Rain Total


--
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/b4c2652a-964a-484a-b821-c06b820a21ban%40googlegroups.com.

Geni

unread,
Apr 16, 2022, 1:07:55 PM4/16/22
to weewx-user
i think it is a bug from highchart
i use Belchertown Skin Version: 1.3b1
belch03.jpg

Doug Jenkins

unread,
Apr 16, 2022, 1:37:36 PM4/16/22
to weewx...@googlegroups.com
I wonder if you try to put html tags within the title/subtitle. can you give this a go:

        title = '<div class="text-center">Historical Rain Totals By Month</div>'
        subtitle = '<div class="text-center">Rain Totals for All Months for All Time</div>'


Geni

unread,
Apr 17, 2022, 6:16:29 AM4/17/22
to weewx-user
html tags do not work there, everything the same with or without html tags.

Geni

unread,
Apr 18, 2022, 5:58:18 AM4/18/22
to weewx-user
The subtitle is correctly centered, it is the title which is unfortunately fixed.
Surely the error was not yet in Blechertown: 1.0.1, see https://www.meteo-oberwallis.ch/wetter/britanniahitta/user/.
The title was still centered and didn't have the hover-attribute.
I hope @Pat takes care of it.
Geni
Message has been deleted

Henry

unread,
Apr 20, 2022, 8:32:05 AM4/20/22
to weewx-user
try to uncomment this in style.css (Line 1896 to 1899)

/* span.highcharts-title { */
/* width: 100% !important; */
/* text-align: center !important; */
/* } */

to

span.highcharts-title {
    width: 100% !important;
    text-align: center !important;
}

or use your own css file with this entry

Geni

unread,
Apr 22, 2022, 7:45:07 AM4/22/22
to weewx-user
@Henry
Perfect many thanks have entered it in custom.css

Geni
Reply all
Reply to author
Forward
0 new messages