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

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
r
Moroboshi (discussione | contributi)
r
Riga 15:
name = 'nome',
internal_legend = 'legenda interna',
external_legend = 'legenda esterna',
other = 'altri',
color_other = 'colore_altri',
Line 56 ⟶ 57:
yTitle = 'titolo y#',
colors = 'colori',
colorsByGroup = 'colori per gruppo x',
strokeThickness = 'spessore linee',
NoTracking = {'nocat'}
}
 
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 72 ⟶ 74:
 
-- Default colors from https://github.com/mbostock/d3/wiki/Ordinal-Scales#categorical-colors
chart_config.colors_palette = {
category10 = {
'1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd',
'8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'
},
category20 = {
'1f77b4', 'aec7e8', 'ff7f0e', 'ffbb78', '2ca02c',
'98df8a', 'd62728', 'ff9896', '9467bd', 'c5b0d5',
Line 88 ⟶ 90:
width = 400,
height = 200,
padding_left = 5,
padding_right = 5,
padding_top = 5,
padding_bottom = 5,
padding_left = 5,
background_color = white,
yGrid = true,
Line 107 ⟶ 104:
Discussioni_modulo = true,
Discussioni_template = true };
 
chart_config.graph_alias = {
linea = 'line',
area = 'area' ,
istogramma = 'rect',
cumulativo = 'stacked'
}
 
chart_config.graph_type = {
line = true{"line", false},
area = true{"area", false},
rect = true{"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},
}