Population Pyramid

{
  "data": [
    {
      "type": "bar",
      "mode": "markers",
      "orientation": "h",
      "meta": {
        "columnNames": {
          "x": "Population 2020",
          "y": "Age"
        }
      },
      "y": [],
      "ysrc": "Age",
      "marker": {
        "color": "rgb(90, 172, 175)",
        "line": {
          "width": 1,
          "color": "rgb(255, 255, 255)"
        }
      },
      "name": "Female 2020",
      "x": [],
      "xsrc": "Population 2020",
      "transforms": [
        {
          "type": "filter",
          "target": [],
          "targetsrc": "Gender",
          "meta": {
            "columnNames": {
              "target": "Gender"
            }
          },
          "value": "Female"
        }
      ]
    },
    {
      "orientation": "v",
      "type": "scatter",
      "mode": "lines",
      "meta": {
        "columnNames": {
          "x": "Projection 2030",
          "y": "Age"
        }
      },
      "yaxis": "y",
      "x": [],
      "xsrc": "Projection 2030",
      "y": [],
      "ysrc": "Age",
      "transforms": [
        {
          "type": "filter",
          "target": [],
          "targetsrc": "Gender",
          "meta": {
            "columnNames": {
              "target": "Gender"
            }
          },
          "value": "Female"
        },
        {
          "type": "sort",
          "target": [ ],
          "targetsrc": "Age",
          "meta": {
            "columnNames": {
              "target": "Age"
            }
          }
        }
      ],
      "connectgaps": false,
      "stackgroup": "",
      "stackgaps": "interpolate",
      "groupnorm": "fraction",
      "name": "Female 2030"
    },
    {
      "type": "bar",
      "mode": "lines",
      "stackgroup": null,
      "orientation": "h",
      "x": [],
      "xsrc": "NegPop2020",
      "meta": {
        "columnNames": {
          "x": "NegPop2020",
          "y": "Age"
        }
      },
      "y": [],
      "ysrc": "Age",
      "transforms": [
        {
          "type": "filter",
          "target": [],
          "targetsrc": "Gender",
          "meta": {
            "columnNames": {
              "target": "Gender"
            }
          },
          "value": "Male"
        }
      ],
      "name": "Male 2020",
      "marker": {
        "line": {
          "width": 1,
          "color": "rgb(255, 255, 255)"
        }
      },
      "hovertemplate": ""
    },
    {
      "orientation": "v",
      "type": "scatter",
      "mode": "lines",
      "meta": {
        "columnNames": {
          "x": "NegPop2030",
          "y": "Age"
        }
      },
      "y": [],
      "ysrc": "Age",
      "transforms": [
        {
          "type": "sort",
          "target": [],
          "targetsrc": "Age",
          "meta": {
            "columnNames": {
              "target": "Age"
            }
          }
        },
        {
          "type": "filter",
          "target": [],
          "targetsrc": "Gender",
          "meta": {
            "columnNames": {
              "target": "Gender"
            }
          },
          "value": "Male"
        }
      ],
      "x": [],
      "xsrc": "NegPop2030",
      "name": "Male 2030"
    }
  ],
  "layout": {
    "xaxis": {
      "range": [
        -526351.6666666666,
        530541.6666666666
      ],
      "tickvals": [
        -400000,
        -200000,
        0,
        200000,
        400000
      ],
      "ticktext": [
        400000,
        200000,
        0,
        200000,
        400000
      ],
      "autorange": true,
      "side": "bottom",
      "overlaying": false,
      "domain": [
        0,
        1
      ],
      "rangeslider": {
        "visible": false,
        "yaxis": {},
        "autorange": true,
        "range": [
          0,
          502838.94736842107
        ]
      },
      "title": {
        "text": "Population"
      },
      "type": "linear",
      "tickprefix": "",
      "tickformat": "",
      "nticks": 0,
      "exponentformat": "B"
    },
    "yaxis": {
      "range": [
        -5.777777777777778,
        109.77777777777777
      ],
      "autorange": true,
      "side": "left",
      "anchor": "x",
      "domain": [
        0,
        1
      ],
      "type": "linear"
    },
    "autosize": true,
    "colorway": [],
    "mapbox": {
      "style": "open-street-map"
    },
    "barmode": "relative",
    "barnorm": "",
    "bargap": 0,
    "bargroupgap": 0,
    "title": {
      "text": "Population Pyramid",
      "font": {
        "family": "sans-serif"
      }
    }
  },
  "frames": []
}

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *