33
« en: 22 de Junio del 2022, 18:51:13 pm »
Te paso parte de mi graph.conf.
Tengo un gráfico en la página de inicio:
[Homepage]
[[llamps]]
title = "Número i distància dels llamps"
type = column
yAxis_label = ""
[[[lightning_strike_count]]]
name = "Número de llamps"
stacking = normal
[[[lightning_distance]]]
name = "Distància llamps (km)"
stacking = normal
Después una sección solo para "rayos":
[llamps]
title = Llamps
show_button = true
button_text = Llamps
time_length = year
#aggregate_type = max
aggregate_interval = 86400 # 1 day
gapsize = 86400000
type = column
yAxis_label = ""
[[llamps]]
title = "Número i distància dels llamps (diari)"
[[[numero_diari_llamps]]]
name = "Número diari de llamps"
aggregate_type = sum
observation_type = lightning_strike_count
stacking = normal
[[[dist_mitj_llamps_diari]]]
name = "Distància mitjana llamps (km)"
aggregate_type = avg
observation_type = lightning_distance
stacking = normal
#yAxis = 1
[[llamps_mensuals]]
xAxis_groupby = month
xAxis_categories = 'Gen.','Febr.', 'Març', 'Abr.', 'Maig', 'Juny', 'Jul.', 'Ag.', 'Set.', 'Oct.', 'Nov.', 'Des.'
title = "Número i distància dels llamps (mensual)"
#time_length = month
#xAxis_groupby = day
[[[num_llamps_mes]]]
name = "Número de llamps"
aggregate_type = sum
observation_type = lightning_strike_count
stacking = normal
##yAxis = 1
[[[dist_mit_llamps]]]
name = "Distància mitjana llamps (km)"
aggregate_type = avg
observation_type = lightning_distance
stacking = normal
#yAxis = 0