There is a bug in WeeWX that may cause chart_fill_colours to fail in some circumstances if only a single colour name is specified. The bug will be fixed in due course, but in the interim if you either specify a second colour (eg chart_fill_colors = Red, Blue) or terminate the a single entry with a comma (eg chart_fill_colors = Red,) it should generate the plot as expected.
Same thing applies to chart_line_colors. Gary On Saturday, 23 September 2023 at 01:33:53 UTC+10 remy.l...@gmail.com wrote: > Hello Gary and thank you again for your response. > > 1/If I put the option chart_fill_colors = Red in [[[daylinky1]]] as you > suggest, it curiously blocks everything. My histogram is not generated but > also the following ones from skin.conf. > If I replace chart_fill_colors = Red in the [[[[electricityLinky]]]] > section EVERYTHING works normally again. > > 2/ Well seen for the fill_color = Red option placed in the > [[[[electricityLinky]]]] section. This now generates red histograms for me. > If I set color = Red the title changes to red but also the edges of the > histograms ! :-( > > The weewx documentation states: > "chart_line_colors: Each chart line is drawn in a different color. This > option is a list of those colors. If the number of lines exceeds the length > of the list, then the colors wrap around to the beginning of the list. > Optional. In the case of bar charts, this is the color of the outline of > the bar. Default is #0000ff, #00ff00, #ff0000. > Individual line color can be overridden by using option color." > > Oddly enough, the "chart_line_colors = Black" option placed in the > [[[[electricityLinky]]]] section produces no effect... > > On the other hand, if I do not stipulate color = Red, I have the borders > of the histograms which are a different color from red (blue). > > I do not understand why ! > > Without option color = Red : > [image: daylinky1.png] > > > with options color = Red *and* chart_line_color = Black : > > [image: daylinky2.png] > > > > Le vendredi 22 septembre 2023 à 11:19:41 UTC+2, gjr80 a écrit : > >> chart_fill_colors is a config option that applies to all lines/bars not >> individual lines/bars. Try moving chart_fill_colors to be under the main >> plot config rather than under an individual line/bar config, eg: >> >> #Histogrammes horaires électricité LINKY >> [[[daylinky1]]] >> yscale = None, None, 1 >> plot_type = bar >> unit = watt_hour >> chart_fill_colors = Red >> [[[[electricityLinky]]]] >> >> color = Red >> aggregate_type = sum >> aggregate_interval = hour >> label = Linky (total horaire) >> >> >> If you want to specify the colour for an individual bar use fill_color >> instead, eg: >> >> #Histogrammes horaires électricité LINKY >> [[[daylinky1]]] >> yscale = None, None, 1 >> plot_type = bar >> unit = watt_hour >> [[[[electricityLinky]]]] >> color = Red >> fill_color = Red >> >> aggregate_type = sum >> aggregate_interval = hour >> label = Linky (total horaire) >> >> >> Gary >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/241e9a84-8427-4dfb-8bac-02d484fd5880n%40googlegroups.com.