TabsTest: Difference between revisions

(Created page with "<tabs> Tab 1=This is the first tab. Tab 2=Here’s the second tab. Tab 3=Final tab with content. </tabs>")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<tabs>
<graph mode="interactive">
Tab 1=This is the first tab.
{
Tab 2=Here’s the second tab.
  "version": 2,
Tab 3=Final tab with content.
  "width": 400,
</tabs>
  "height": 200,
  "data": [{
    "name": "table",
    "values": [
      {"x": 1, "y": 28}, {"x": 2, "y": 55},
      {"x": 3, "y": 43}, {"x": 4, "y": 91},
      {"x": 5, "y": 81}, {"x": 6, "y": 53},
      {"x": 7, "y": 19}, {"x": 8, "y": 87},
      {"x": 9, "y": 52}, {"x": 10, "y": 48}
    ]
  }],
  "scales": [{
    "name": "x",
    "type": "linear",
    "range": "width",
    "zero": false,
    "domain": {"data": "table", "field": "x"}
  }, {
    "name": "y",
    "type": "linear",
    "range": "height",
    "nice": true,
    "domain": {"data": "table", "field": "y"}
  }],
  "axes": [{"orient": "bottom", "scale": "x"}, {"orient": "left", "scale": "y"}],
  "marks": [{
    "type": "line",
    "from": {"data": "table"},
    "encode": {
      "enter": {
        "x": {"scale": "x", "field": "x"},
        "y": {"scale": "y", "field": "y"},
        "stroke": {"value": "steelblue"},
        "strokeWidth": {"value": 2}
      }
    }
  }]
}
</graph>

Latest revision as of 01:02, 30 April 2025