Modulo:Graph/sandbox/Configurazione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
+parametro per alfa separata da colori
Moroboshi (discussione | contributi)
r
Riga 16:
internal_legend = 'legenda interna',
external_legend = 'legenda esterna',
nCols = 'colonne legenda',
other = 'altri',
color_other = 'colore_altri',
Line 63 ⟶ 64:
}
 
chart_config.interpolate = { monotone= true, linear= true, ['step-before']= true, ['step-after']= true,
basis= true, ['basis-open']= true, ['basis-closed']= true, bundle= true,
cardinal= true, ['cardinal-open']= true, ['cardinal-closed']= true }
 
Line 75 ⟶ 76:
 
-- Default colors from https://github.com/mbostock/d3/wiki/Ordinal-Scales#categorical-colors
chart_config.colors_palette = {
category10 = { 10, { '#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd',
'#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', '#17becf'}
},
category20 = { 20, { '#1f77b4', '#aec7e8', '#ff7f0e', '#ffbb78', '#2ca02c',
'#98df8a', '#d62728', '#ff9896', '#9467bd', '#c5b0d5',
Line 106 ⟶ 107:
chart_config.graph_type = {
line = {"line", false},
area = {"area", false},
rect = {"rect", false},
stackedline = {"line", true},
stackedarea = {"area", true},
stackedrect = {"rect", true},
linea = {"line", false},
istogramma = {"rect", false},
['linea cumulativa'] = {"line", true},
['area cumulativa'] = {"area", true},
['istogramma cumulativo'] = {"rect", true},
}