wpu.nu

Skillnad mellan versioner av "Graftest"

Från wpu.nu

(Skapade sidan med '{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}} {{Graph:Chart|width=100|height=100|type=pie|legend=Legende...')
 
Rad 1: Rad 1:
{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
+
<graph>
|type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
+
{
 
+
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
{{Graph:Chart|width=100|height=100|type=pie|legend=Legende
+
  "data": {
|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200
+
    "values": [
|y2=7,8,9,8,8,9,10,9,5|showValues=}}
+
      {"a": "C", "b": 2},
 
+
      {"a": "C", "b": 7},
{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y
+
      {"a": "C", "b": 4},
|legend=Legend|type=stackedarea|x=1,2,3,4,5,6|y1=10,12,6,14,2,10
+
      {"a": "D", "b": 1},
|y2=2,4,6,8,13,11|interpolate=monotone|colors=seagreen,orchid}}
+
      {"a": "D", "b": 2},
 +
      {"a": "D", "b": 6},
 +
      {"a": "E", "b": 8},
 +
      {"a": "E", "b": 4},
 +
      {"a": "E", "b": 7}
 +
    ]
 +
  },
 +
  "mark": "bar",
 +
  "encoding": {
 +
    "y": {"field": "a", "type": "nominal", "title": "A Class"},
 +
    "x": {
 +
      "aggregate": "sum",
 +
      "field": "b",
 +
      "type": "quantitative",
 +
      "title": "Sum of B"
 +
    }
 +
  }
 +
}
 +
</graph>

Versionen från 18 januari 2021 kl. 10.28