{
  "version": "xarts.survey/1",
  "family": "survey",
  "provenance": {
    "legacyId": "divergingbar"
  },
  "data": {
    "unit": "percent",
    "totalTolerance": 0,
    "rows": [
      {
        "Question": "Work-life balance is good",
        "Strongly Disagree": 5,
        "Disagree": 10,
        "Neutral": 12,
        "Agree": 38,
        "Strongly Agree": 35
      },
      {
        "Question": "Management communicates well",
        "Strongly Disagree": 12,
        "Disagree": 18,
        "Neutral": 15,
        "Agree": 32,
        "Strongly Agree": 23
      },
      {
        "Question": "I feel valued",
        "Strongly Disagree": 8,
        "Disagree": 14,
        "Neutral": 18,
        "Agree": 35,
        "Strongly Agree": 25
      },
      {
        "Question": "Career growth opportunities",
        "Strongly Disagree": 15,
        "Disagree": 22,
        "Neutral": 20,
        "Agree": 28,
        "Strongly Agree": 15
      },
      {
        "Question": "Team collaboration",
        "Strongly Disagree": 4,
        "Disagree": 8,
        "Neutral": 10,
        "Agree": 40,
        "Strongly Agree": 38
      },
      {
        "Question": "Fair compensation",
        "Strongly Disagree": 18,
        "Disagree": 25,
        "Neutral": 17,
        "Agree": 25,
        "Strongly Agree": 15
      },
      {
        "Question": "Office environment",
        "Strongly Disagree": 6,
        "Disagree": 11,
        "Neutral": 14,
        "Agree": 36,
        "Strongly Agree": 33
      },
      {
        "Question": "Company direction",
        "Strongly Disagree": 10,
        "Disagree": 15,
        "Neutral": 20,
        "Agree": 30,
        "Strongly Agree": 25
      }
    ]
  },
  "encoding": {
    "category": "Question",
    "scale": [
      {
        "field": "Strongly Disagree",
        "label": "Strongly Disagree",
        "polarity": "negative"
      },
      {
        "field": "Disagree",
        "label": "Disagree",
        "polarity": "negative"
      },
      {
        "field": "Neutral",
        "label": "Neutral",
        "polarity": "neutral"
      },
      {
        "field": "Agree",
        "label": "Agree",
        "polarity": "positive"
      },
      {
        "field": "Strongly Agree",
        "label": "Strongly Agree",
        "polarity": "positive"
      }
    ]
  },
  "calculation": {
    "normalize": "none",
    "neutral": "split",
    "order": "input"
  },
  "layout": {
    "orientation": "horizontal",
    "bandPadding": 0.25,
    "limit": 100
  },
  "ordinal": {
    "view": "ordinal-divergence",
    "measurement": "shaped",
    "margin": {
      "top": 40,
      "right": 56,
      "bottom": 48,
      "left": 200
    },
    "colors": [
      "#9c1f1a",
      "#6a4a4a",
      "#8a8478",
      "#4b8596",
      "#112c47"
    ],
    "axis": {
      "tickLength": 0,
      "fontSize": 13,
      "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "fill": "#3d3d3d",
      "rowGap": 16,
      "labelGap": 8,
      "preserve": true
    },
    "legend": {
      "reservation": "explicit",
      "height": 80,
      "columns": null
    },
    "bar": {
      "radius": 0,
      "outline": "#ffffff",
      "width": 1.25
    },
    "zero": {
      "stroke": "#2a2a2a",
      "width": 1
    },
    "endLabels": {
      "fontSize": 13,
      "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "fill": "#0d0d0d",
      "offset": 7,
      "decimals": 1
    }
  },
  "marks": {
    "opacity": 1
  },
  "labels": {
    "decimals": 1,
    "fontSize": 13,
    "net": false,
    "negative": true,
    "positive": true,
    "total": false,
    "neutral": false
  },
  "axes": {
    "valueTitle": "",
    "grid": true,
    "ticks": 5
  },
  "legend": {
    "visible": true
  },
  "annotations": [],
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Employee Survey",
      "subtitle": "Agreement vs disagreement on workplace topics"
    },
    "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": 720
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "divergingbar",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
