packages feed

hvega-0.6.0.0: tests/specs/gallery/layer/layer6.vl

{
    "height": 200,
    "data": {
        "url": "https://vega.github.io/vega-lite/data/weather.json"
    },
    "width": 250,
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "title": {
        "text": [
            "Weekly Weather",
            "Observations and Predictions"
        ],
        "frame": "group"
    },
    "layer": [
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#ccc"
                },
                "size": {
                    "value": 20
                },
                "y2": {
                    "field": "record.high"
                },
                "y": {
                    "field": "record.low",
                    "scale": {
                        "domain": [
                            10,
                            70
                        ]
                    },
                    "type": "quantitative",
                    "axis": {
                        "title": "Temperature (F)"
                    }
                }
            }
        },
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#999"
                },
                "size": {
                    "value": 20
                },
                "y2": {
                    "field": "normal.high"
                },
                "y": {
                    "field": "normal.low",
                    "type": "quantitative"
                }
            }
        },
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#000"
                },
                "size": {
                    "value": 12
                },
                "y2": {
                    "field": "actual.high"
                },
                "y": {
                    "field": "actual.low",
                    "type": "quantitative"
                }
            }
        },
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#000"
                },
                "size": {
                    "value": 12
                },
                "y2": {
                    "field": "forecast.low.high"
                },
                "y": {
                    "field": "forecast.low.low",
                    "type": "quantitative"
                }
            }
        },
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#000"
                },
                "size": {
                    "value": 3
                },
                "y2": {
                    "field": "forecast.high.low"
                },
                "y": {
                    "field": "forecast.low.high",
                    "type": "quantitative"
                }
            }
        },
        {
            "mark": {
                "style": "box",
                "type": "bar"
            },
            "encoding": {
                "color": {
                    "value": "#000"
                },
                "size": {
                    "value": 12
                },
                "y2": {
                    "field": "forecast.high.high"
                },
                "y": {
                    "field": "forecast.high.low",
                    "type": "quantitative"
                }
            }
        },
        {
            "mark": {
                "align": "center",
                "type": "text",
                "baseline": "bottom",
                "y": -5
            },
            "encoding": {
                "text": {
                    "field": "day",
                    "type": "nominal"
                }
            }
        }
    ],
    "encoding": {
        "x": {
            "field": "id",
            "type": "ordinal",
            "axis": {
                "domain": false,
                "orient": "top",
                "titlePadding": 25,
                "labels": false,
                "title": null,
                "ticks": false
            }
        }
    },
    "description": "A layered bar chart with floating bars representing weekly weather data"
}