Esempio 4 passi, eseguiti in ordine in una sola sessione. Ogni passo è stato eseguito sul motore e l'output qui sotto è ciò che ha prodotto.
data = {0.3, 0.3, 1.2, 0.8, 3.1, 1, 4, 0.1};Nessun output - questo passo prepara qualcosa per il successivo.
newdata = MapIndexed[If[# > Mean[data], Style[
Legended[#, Row[{"bar", First[#2]}]], ColorData[63, First[#2]]], #]&, data];Nessun output - questo passo prepara qualcosa per il successivo.
styles = Sequence@@{ImageSize -> 400, ChartStyle -> Gray, GridLinesStyle -> Directive[AbsoluteThickness[3], LightGray]};Nessun output - questo passo prepara qualcosa per il successivo.
BarChart[newdata, ChartElementFunction -> "FadingRectangle", GridLines -> {None, {Mean[data]}}, Evaluate@styles, ChartLegends -> SwatchLegend[None, LegendMarkerSize -> 20, LegendMarkers -> "FadingRectangle", LabelStyle -> {Gray, Bold, 18}, LegendLabel -> "above mean"]]-Graphics-Tutte le ricette · Guida delle funzioni · Usa questo da un client MCP