Benutzer:Pietrasagh/Spielwiese2

aus Wikipedia, der freien Enzyklopädie
Zur Navigation springen Zur Suche springen


chart JSON

{
   "legends": [],
   "scales": [
       {
           "type": "linear",
           "name": "x",
           "zero": false,
           "domain": {
               "data": "chart",
               "field": "x"
           },
           "range": "width",
           "nice": true
       },
       {
           "type": "linear",
           "name": "y",
           "domain": {
               "data": "chart",
               "field": "y"
           },
           "zero": false,
           "range": "height",
           "nice": true
       },
       {
           "domain": {
               "data": "chart",
               "field": "series"
           },
           "type": "ordinal",
           "name": "color",
           "range": [
               "#ff5ba0",
               "#1050ff",
               "#aaff00",
               ""
           ]
       },
       {
           "type": "ordinal",
           "name": "transparency",
           "range": [
               "1",
               "0.3921568627451",
               "1",
               "1"
           ]
       },
       {
           "domain": {
               "data": "chart",
               "field": "series"
           },
           "type": "ordinal",
           "name": "line",
           "range": [
               2,
               4,
               0
           ]
       },
       {
           "domain": {
               "data": "chart",
               "field": "series"
           },
           "type": "ordinal",
           "name": "symSize",
           "range": [
               212.5,
               544,
               850
           ]
       },
       {
           "domain": {
               "data": "chart",
               "field": "series"
           },
           "type": "ordinal",
           "name": "symShape",
           "range": [
               "triangle-up",
               "cross",
               "m -0.5281,0.2880 0.0020,0.0192 m 0,0 c 0.1253,0.0543 0.2118,0.0679 0.3268,0.0252 0.1569,-0.0582 0.3663,-0.1636 0.4607,-0.3407 0.0824,-0.1547 0.1202,-0.2850 0.0838,-0.4794 l 0.0111,-0.1498 -0.0457,-0.0015 c -0.0024,0.3045 -0.1205,0.5674 -0.3357,0.7414 -0.1409,0.1139 -0.3227,0.1693 -0.5031,0.1856 m 0,0 c 0.1804,-0.0163 0.3622,-0.0717 0.5031,-0.1856 0.2152,-0.1739 0.3329,-0.4291 0.3357,-0.7414 l -0.0422,0.0079 c 0,0 -0.0099,0.1111 -0.0227,0.1644 -0.0537,0.1937 -0.1918,0.3355 -0.3349,0.4481 -0.1393,0.1089 -0.2717,0.2072 -0.4326,0.2806 l -0.0062,0.0260"
           ]
       }
   ],
   "version": 2,
   "marks": [
       {
           "type": "group",
           "marks": [
               {
                   "properties": {
                       "hover": {
                           "stroke": {
                               "value": "red"
                           }
                       },
                       "update": {
                           "strokeOpacity": {
                               "scale": "transparency",
                               "field": "series"
                           },
                           "stroke": {
                               "scale": "color",
                               "field": "series"
                           }
                       },
                       "enter": {
                           "y": {
                               "scale": "y",
                               "field": "y"
                           },
                           "x": {
                               "scale": "x",
                               "field": "x"
                           },
                           "stroke": {
                               "scale": "color",
                               "field": "series"
                           },
                           "strokeWidth": {
                               "scale": "line",
                               "field": "series"
                           }
                       }
                   },
                   "type": "line"
               },
               {
                   "properties": {
                       "enter": {
                           "stroke": {
                               "scale": "color",
                               "field": "series"
                           },
                           "strokeWidth": {
                               "value": 0
                           },
                           "y": {
                               "scale": "y",
                               "field": "y"
                           },
                           "x": {
                               "scale": "x",
                               "field": "x"
                           },
                           "strokeOpacity": {
                               "scale": "transparency",
                               "field": "series"
                           },
                           "size": {
                               "scale": "symSize",
                               "field": "series"
                           },
                           "fillOpacity": {
                               "scale": "transparency",
                               "field": "series"
                           },
                           "shape": {
                               "scale": "symShape",
                               "field": "series"
                           },
                           "fill": {
                               "scale": "color",
                               "field": "series"
                           }
                       }
                   },
                   "type": "symbol"
               }
           ],
           "from": {
               "data": "chart",
               "transform": [
                   {
                       "groupby": [
                           "series"
                       ],
                       "type": "facet"
                   }
               ]
           }
       },
       {
           "type": "rule",
           "properties": {
               "update": {
                   "y": {
                       "value": 0
                   },
                   "x": {
                       "scale": "x",
                       "field": "x"
                   },
                   "opacity": {
                       "value": 0.75
                   },
                   "y2": {
                       "field": {
                           "group": "height"
                       }
                   },
                   "stroke": {
                       "value": "#54595d"
                   },
                   "strokeWidth": {
                       "value": "#54595d"
                   }
               }
           },
           "from": {
               "data": "v_anno"
           }
       },
       {
           "type": "text",
           "properties": {
               "update": {
                   "y": {
                       "offset": -3,
                       "field": {
                           "group": "height"
                       }
                   },
                   "x": {
                       "scale": "x",
                       "offset": 3,
                       "field": "x"
                   },
                   "opacity": {
                       "value": 0.75
                   },
                   "baseline": {
                       "value": "top"
                   },
                   "text": {
                       "field": "label"
                   },
                   "angle": {
                       "value": -90
                   },
                   "fill": {
                       "value": "#54595d"
                   }
               }
           },
           "from": {
               "data": "v_anno"
           }
       },
       {
           "type": "rule",
           "properties": {
               "update": {
                   "y": {
                       "scale": "y",
                       "field": "y"
                   },
                   "x": {
                       "value": 0
                   },
                   "x2": {
                       "field": {
                           "group": "width"
                       }
                   },
                   "stroke": {
                       "value": "#54595d"
                   },
                   "opacity": {
                       "value": 0.75
                   },
                   "strokeWidth": {
                       "value": "#54595d"
                   }
               }
           },
           "from": {
               "data": "h_anno"
           }
       },
       {
           "type": "text",
           "properties": {
               "update": {
                   "y": {
                       "scale": "y",
                       "offset": 3,
                       "field": "y"
                   },
                   "x": {
                       "value": 0,
                       "offset": 3
                   },
                   "opacity": {
                       "value": 0.75
                   },
                   "baseline": {
                       "value": "top"
                   },
                   "text": {
                       "field": "label"
                   },
                   "angle": {
                       "value": 0
                   },
                   "fill": {
                       "value": "#54595d"
                   }
               }
           },
           "from": {
               "data": "h_anno"
           }
       }
   ],
   "height": 200,
   "axes": [
       {
           "type": "x",
           "scale": "x",
           "format": "d",
           "properties": {
               "title": {
                   "fill": {
                       "value": "#54595d"
                   }
               },
               "grid": {
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "ticks": {
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "axis": {
                   "strokeWidth": {
                       "value": 2
                   },
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "labels": {
                   "fill": {
                       "value": "#54595d"
                   }
               }
           },
           "grid": false
       },
       {
           "type": "y",
           "scale": "y",
           "properties": {
               "title": {
                   "fill": {
                       "value": "#54595d"
                   }
               },
               "grid": {
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "ticks": {
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "axis": {
                   "strokeWidth": {
                       "value": 2
                   },
                   "stroke": {
                       "value": "#54595d"
                   }
               },
               "labels": {
                   "fill": {
                       "value": "#54595d"
                   }
               }
           },
           "grid": false
       }
   ],
   "data": [
       {
           "format": {
               "parse": {
                   "y": "number",
                   "x": "integer"
               },
               "type": "json"
           },
           "name": "chart",
           "values": [
               {
                   "y": 0,
                   "series": "y1",
                   "x": 3
               },
               {
                   "y": 3.342,
                   "series": "y1",
                   "x": 4
               },
               {
                   "y": 2.3423,
                   "series": "y1",
                   "x": 5
               },
               {
                   "y": 5.32423,
                   "series": "y1",
                   "x": 6
               },
               {
                   "y": 1,
                   "series": "y1",
                   "x": 7
               },
               {
                   "y": 1,
                   "series": "y2",
                   "x": 1
               },
               {
                   "y": 2.342,
                   "series": "y2",
                   "x": 2
               },
               {
                   "y": 4.63,
                   "series": "y2",
                   "x": 3
               },
               {
                   "y": 2.32423,
                   "series": "y2",
                   "x": 4
               },
               {
                   "y": 3,
                   "series": "y3",
                   "x": 1
               },
               {
                   "y": 1.342,
                   "series": "y3",
                   "x": 2
               },
               {
                   "y": 2.63,
                   "series": "y3",
                   "x": 3
               },
               {
                   "y": 6.32423,
                   "series": "y3",
                   "x": 4
               }
           ]
       },
       {
           "format": {
               "parse": {
                   "x": "integer"
               },
               "type": "json"
           },
           "name": "v_anno",
           "values": [
               {
                   "label": "",
                   "x": "1"
               },
               {
                   "label": "label1",
                   "x": "2"
               },
               {
                   "label": "label2",
                   "x": "3"
               },
               {
                   "label": "label3",
                   "x": "4"
               },
               {
                   "x": "5"
               },
               {
                   "x": "6"
               },
               {
                   "x": "7"
               }
           ]
       },
       {
           "format": {
               "parse": {
                   "y": "number"
               },
               "type": "json"
           },
           "name": "h_anno",
           "values": [
               {
                   "y": "1",
                   "label": "hlabel1"
               },
               {
                   "y": "3",
                   "label": "hlabel3"
               },
               {
                   "y": "4",
                   "label": "hlabel4"
               }
           ]
       }
   ],
   "width": 200

}

Debug


- v_annoLineString stack traceback: Modul:Spielwiese/pietrasagh/Graph:1081: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: string result:

"1, 2, 3, 4, 5, 6, 7"

- h_annoLineString stack traceback: Modul:Spielwiese/pietrasagh/Graph:1082: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: string result:

"1, 3, 4"

- v_annoLabelString stack traceback: Modul:Spielwiese/pietrasagh/Graph:1083: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: string result:

",label1, label2, label3"

- h_annoLabelString stack traceback: Modul:Spielwiese/pietrasagh/Graph:1084: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: string result:

"hlabel1, hlabel3, hlabel4"

- v_annoLine level 1

- v_annoLine level 3

- h_annoLine level 1

- h_annoLine level 3

- v_annoLine stack traceback: Modul:Spielwiese/pietrasagh/Graph:1110: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   "1",
   "2",
   "3",
   "4",
   "5",
   "6",
   "7",

}

- h_annoLine stack traceback: Modul:Spielwiese/pietrasagh/Graph:1111: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   "1",
   "3",
   "4",

}

- v_annoLabel stack traceback: Modul:Spielwiese/pietrasagh/Graph:1112: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   "",
   "label1",
   "label2",
   "label3",

}

- h_annoLabel stack traceback: Modul:Spielwiese/pietrasagh/Graph:1113: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   "hlabel1",
   "hlabel3",
   "hlabel4",

}

- vannoData stack traceback: Modul:Spielwiese/pietrasagh/Graph:1188: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["format"] = table#2 {
       ["parse"] = table#3 {
           ["x"] = "integer",
       },
       ["type"] = "json",
   },
   ["name"] = "v_anno",
   ["values"] = table#4 {
       table#5 {
           ["label"] = "",
           ["x"] = "1",
       },
       table#6 {
           ["label"] = "label1",
           ["x"] = "2",
       },
       table#7 {
           ["label"] = "label2",
           ["x"] = "3",
       },
       table#8 {
           ["label"] = "label3",
           ["x"] = "4",
       },
       table#9 {
           ["x"] = "5",
       },
       table#10 {
           ["x"] = "6",
       },
       table#11 {
           ["x"] = "7",
       },
   },

}

- vannoData stack traceback: Modul:Spielwiese/pietrasagh/Graph:1189: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["format"] = table#2 {
       ["parse"] = table#3 {
           ["y"] = "number",
       },
       ["type"] = "json",
   },
   ["name"] = "h_anno",
   ["values"] = table#4 {
       table#5 {
           ["label"] = "hlabel1",
           ["y"] = "1",
       },
       table#6 {
           ["label"] = "hlabel3",
           ["y"] = "3",
       },
       table#7 {
           ["label"] = "hlabel4",
           ["y"] = "4",
       },
   },

}

- vannolines stack traceback: Modul:Spielwiese/pietrasagh/Graph:820: in function 'getAnnoMarks' Modul:Spielwiese/pietrasagh/Graph:1364: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["from"] = table#2 {
       ["data"] = "v_anno",
   },
   ["properties"] = table#3 {
       ["update"] = table#4 {
           ["opacity"] = table#5 {
               ["value"] = 0.75,
           },
           ["stroke"] = table#6 {
               ["value"] = "#54595d",
           },
           ["strokeWidth"] = table#7 {
               ["value"] = "#54595d",
           },
           ["x"] = table#8 {
               ["field"] = "x",
               ["scale"] = "x",
           },
           ["y"] = table#9 {
               ["value"] = 0,
           },
           ["y2"] = table#10 {
               ["field"] = table#11 {
                   ["group"] = "height",
               },
           },
       },
   },
   ["type"] = "rule",

}

- vannolabels stack traceback: Modul:Spielwiese/pietrasagh/Graph:839: in function 'getAnnoMarks' Modul:Spielwiese/pietrasagh/Graph:1364: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["from"] = table#2 {
       ["data"] = "v_anno",
   },
   ["properties"] = table#3 {
       ["update"] = table#4 {
           ["angle"] = table#5 {
               ["value"] = -90,
           },
           ["baseline"] = table#6 {
               ["value"] = "top",
           },
           ["fill"] = table#7 {
               ["value"] = "#54595d",
           },
           ["opacity"] = table#8 {
               ["value"] = 0.75,
           },
           ["text"] = table#9 {
               ["field"] = "label",
           },
           ["x"] = table#10 {
               ["field"] = "x",
               ["offset"] = 3,
               ["scale"] = "x",
           },
           ["y"] = table#11 {
               ["field"] = table#12 {
                   ["group"] = "height",
               },
               ["offset"] = -3,
           },
       },
   },
   ["type"] = "text",

}

- hannolines stack traceback: Modul:Spielwiese/pietrasagh/Graph:857: in function 'getAnnoMarks' Modul:Spielwiese/pietrasagh/Graph:1364: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["from"] = table#2 {
       ["data"] = "h_anno",
   },
   ["properties"] = table#3 {
       ["update"] = table#4 {
           ["opacity"] = table#5 {
               ["value"] = 0.75,
           },
           ["stroke"] = table#6 {
               ["value"] = "#54595d",
           },
           ["strokeWidth"] = table#7 {
               ["value"] = "#54595d",
           },
           ["x"] = table#8 {
               ["value"] = 0,
           },
           ["x2"] = table#9 {
               ["field"] = table#10 {
                   ["group"] = "width",
               },
           },
           ["y"] = table#11 {
               ["field"] = "y",
               ["scale"] = "y",
           },
       },
   },
   ["type"] = "rule",

}

- hannolabels stack traceback: Modul:Spielwiese/pietrasagh/Graph:876: in function 'getAnnoMarks' Modul:Spielwiese/pietrasagh/Graph:1364: in function 'chart' Modul:Spielwiese/pietrasagh/Graph:1412: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ?result type: table result:

table#1 {

   ["from"] = table#2 {
       ["data"] = "h_anno",
   },
   ["properties"] = table#3 {
       ["update"] = table#4 {
           ["angle"] = table#5 {
               ["value"] = 0,
           },
           ["baseline"] = table#6 {
               ["value"] = "top",
           },
           ["fill"] = table#7 {
               ["value"] = "#54595d",
           },
           ["opacity"] = table#8 {
               ["value"] = 0.75,
           },
           ["text"] = table#9 {
               ["field"] = "label",
           },
           ["x"] = table#10 {
               ["offset"] = 3,
               ["value"] = 0,
           },
           ["y"] = table#11 {
               ["field"] = "y",
               ["offset"] = 3,
               ["scale"] = "y",
           },
       },
   },
   ["type"] = "text",

}


Vorlage:Graph:Chart/Spielwiese2

|hannotatonsline = 1, 3, 4

|hannotatonslabel = hlabel1, hlabel3, hlabel4