{
  "name": "dialog/productivity_report/develop_chart.json",
  "definition_not_in_use": {
    "marks": [
      {
        "type": "symbol",
        "from": {"data": "bar"},
        "properties": {
          "enter": {
            "x": {"scale": "x","field": "category", "offset": 19},
            "y": {"scale": "y","field": "amount"},
            "stroke": {"value": "steelblue"},
            "fill": {"value": "white"},
            "size": {"value": 30}
          }
        }
      },
      {
        "type": "line",
        "from": {"data": "bar"},
        "properties": {
          "enter": {
            "interpolate": {"value": "monotone"},
            "x": {"scale": "x","field": "category", "offset": 19},
            "y": {"scale": "y","field": "amount"},
            "stroke": {"value": "steelblue"},
            "opacity": {"value": 0.7},
            "strokeWidth": {"value": 1}
          }
        }
      }
    ]
  },
  "definition": {
    "width": 440,
    "height": 248,
    "padding": {"top": 5, "left": 50, "bottom": 25, "right": 50},
    "data": [
      {
        "name": "bar",
        "values": [
          {"category": "1",  "amount": 0},
          {"category": "2",  "amount": 0},
          {"category": "3",  "amount": 0},
          {"category": "4",  "amount": 0},
          {"category": "5",  "amount": 0},
          {"category": "6",  "amount": 0},
          {"category": "7",  "amount": 0},
          {"category": "8",  "amount": 0},
          {"category": "9",  "amount": 0},
          {"category": "10", "amount": 0},
          {"category": "11", "amount": 0},
          {"category": "12", "amount": 0}
        ]
      },
      {
        "name": "line",
        "values": [
          {"category": "16-02",  "amount": 50},
          {"category": "16-07",  "amount": 50},
          {"category": "16-08",  "amount": 75},
          {"category": "16-12",  "amount": 75}
        ]
      }
    ],
    "scales": [
      {
        "name": "x",
        "type": "ordinal",
        "range": "width",
        "domain": {"data": "bar", "field": "category"}
      },
      {
        "name": "y",
        "type": "linear",
        "range": "height",
        "domain": {"data": "bar", "field": "amount"},
        "domainMax": 120,
        "nice": true
      },
      {
        "name": "bar_color",
        "type": "ordinal",
        "range": [
          "steelblue"
        ],
        "domain": {
          "data": "bar",
          "field": "category"
        }
      }
    ],
    "axes": [
      {"type": "x", "scale": "x", "grid": false},
      {"type": "y", "scale": "y", "grid": true}
    ],
    "marks": [
      {
        "type": "rect",
        "from": {"data": "bar"},
        "properties": {
          "enter": {
            "x": {"scale": "x", "field": "category"},
            "width": {"scale": "x", "band": true, "offset": -1},
            "y": {"scale": "y", "field": "amount"},
            "y2": {"scale": "y", "value": 0}
          },
          "update": {
            "opacity": {"value": 0.7},
            "fill_XX": {"value": "steelblue"},
            "fill": {
              "field": "category",
              "scale": "bar_color"
            }
          },
          "hover": {
            "opacity": {"value": 0.7},
            "fill": {"value": "lightsteelblue"}
          }
        }
      },
      {
        "type": "text",
        "from": {
          "data": "bar"
        },
        "properties": {
          "enter": {
            "x": {
              "field": "category",
              "scale": "x",
              "offset": 19
            },
            "y": {
              "field": "amount",
              "scale": "y",
              "offset": -6
            },
            "fill": {"value": "grey"},
            "align": {"value": "center"},
            "baseline": {"value": "middle"},
            "text": {"field": "amount"}
          }
        }
      },
      {
        "type": "line",
        "from": {"data": "line"},
        "properties": {
          "enter": {
            "x": {"scale": "x", "field": "category", "offset": 19},
            "y": {"scale": "y", "field": "amount"},
            "stroke": {"value": "green"},
            "opacity": {"value": 0.5},
            "strokeWidth": {"value": 2}
          }
        }
      }
    ]
  }
}
