{
  "version": "xarts.opposed/1",
  "family": "opposed",
  "operation": "mirror-bars",
  "provenance": {
    "legacyId": "pyramid"
  },
  "data": {
    "unit": "personas",
    "rows": [
      {
        "id": "row-1",
        "label": "0-10",
        "left": 4200,
        "right": 4000
      },
      {
        "id": "row-2",
        "label": "11-20",
        "left": 5100,
        "right": 4900
      },
      {
        "id": "row-3",
        "label": "21-30",
        "left": 6300,
        "right": 6100
      },
      {
        "id": "row-4",
        "label": "31-40",
        "left": 5800,
        "right": 5600
      },
      {
        "id": "row-5",
        "label": "41-50",
        "left": 5200,
        "right": 5000
      },
      {
        "id": "row-6",
        "label": "51-60",
        "left": 4500,
        "right": 4400
      },
      {
        "id": "row-7",
        "label": "61-70",
        "left": 3600,
        "right": 3700
      },
      {
        "id": "row-8",
        "label": "71-80",
        "left": 2400,
        "right": 2600
      }
    ]
  },
  "sides": {
    "left": {
      "label": "Male",
      "color": "series.blue"
    },
    "right": {
      "label": "Female",
      "color": "series.pink"
    }
  },
  "calculation": {
    "order": "input",
    "domainPadding": 0,
    "roundDomain": false,
    "zeroDomainMaximum": 1,
    "scale": "shared-linear"
  },
  "layout": {
    "legendHeight": 48,
    "margin": {
      "top": 40,
      "right": 20,
      "bottom": 48,
      "left": 80
    },
    "bandPadding": 0.1,
    "measureYAxis": true,
    "axisInkPadding": 0,
    "axisMeasurementNumerals": "proportional-nums",
    "exportTextMeasurement": "glyph-advances",
    "legendExportMeasurement": "basic-pairs",
    "center": {
      "kind": "measured",
      "width": 0,
      "maxFraction": 0.34,
      "padding": 8,
      "characterFactor": 0.55,
      "fontSize": 12,
      "fontWeight": 600,
      "exportMeasurement": "basic-pairs"
    },
    "valueGutter": 0,
    "minimumSideWidth": 10,
    "legend": "bottom",
    "flexLegend": true,
    "rowPaint": "by-side"
  },
  "marks": {
    "radius": 0,
    "opacity": 0.9,
    "omitZeroBars": false,
    "divider": "channel",
    "dividerColor": "border",
    "dividerWidth": 1
  },
  "axes": {
    "primary": "left",
    "ticks": 3,
    "rowLabels": false,
    "gridRows": false,
    "gridColumns": false,
    "baseline": true,
    "secondary": "right",
    "secondaryColor": "axis"
  },
  "labels": {
    "centerKind": "data-label",
    "fontSize": 13,
    "fontWeight": 600,
    "color": "dataLabel.color",
    "values": false,
    "integerPrecision": false,
    "sideHeaders": "center",
    "sideFontSize": 12,
    "sideFontWeight": 600
  },
  "annotations": [],
  "interaction": {
    "tooltip": true,
    "legend": true,
    "hover": "bar"
  },
  "document": {
    "header": {
      "title": "Population Pyramid",
      "subtitle": "Population by age group and gender"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 500
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "pyramid-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
