2021-07-08T12:29:53.648Z |
arnold |
10.42.3.1 |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 |
[] |
{
"specification": {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6b24d7130bef4bf78f567d9c9ad96f59.csv"
},
"transform": [
{
"filter": "datum.diagnosis_code=='U09.9'"
},
{
"filter": "datum.sex!='all'"
}
],
"width": 300,
"height": 200,
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"title": "Age group",
"field": "age_group",
"type": "nominal",
"axis": {
"labelAngle": 0
}
},
"y": {
"title": "Number of patients who received the diagnosis",
"field": "number_of_patients",
"type": "quantitative"
},
"color": {
"field": "sex",
"type": "nominal"
},
"tooltip": [
{
"field": "age_group",
"type": "nominal",
"title": "Age group"
},
{
"field": "sex",
"type": "nominal",
"title": "Sex"
},
{
"field": "number_of_patients",
"type": "quantitative",
"title": "Number of patients who received the diagnosis"
}
]
}
}
} |
{} |
2021-07-08T12:26:14.325Z |
arnold |
10.42.3.1 |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 |
[] |
{
"specification": {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6b24d7130bef4bf78f567d9c9ad96f59.csv"
},
"transform": [
{
"filter": "datum.diagnosis_code=='U09.9'"
},
{
"filter": "datum.sex!='all'"
}
],
"width": 600,
"height": 200,
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"title": "Age group",
"field": "age_group",
"type": "nominal",
"axis": {
"labelAngle": 0
}
},
"y": {
"title": "Number of patients who received the diagnosis",
"field": "number_of_patients",
"type": "quantitative"
},
"color": {
"field": "sex",
"type": "nominal"
},
"tooltip": [
{
"field": "age_group",
"type": "nominal",
"title": "Age group"
},
{
"field": "sex",
"type": "nominal",
"title": "Sex"
},
{
"field": "number_of_patients",
"type": "quantitative",
"title": "Number of patients who received the diagnosis"
}
]
}
}
} |
{} |
2021-07-08T12:26:03.193Z |
arnold |
10.42.3.1 |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 |
[] |
{
"specification": {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6b24d7130bef4bf78f567d9c9ad96f59.csv"
},
"transform": [
{
"filter": "datum.diagnosis_code=='U09.9'"
},
{
"filter": "datum.sex!='all'"
}
],
"width": 600,
"height": 200,
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"title": "Age group",
"field": "age_group",
"type": "nominal",
"axis": {
"labelAngle": 0
}
},
"y": {
"title": "Number of patients who received the diagnosis",
"field": "number_of_patients",
"type": "quantitative"
},
"color": {
"field": "sex",
"type": "nominal",
"legend": null
},
"tooltip": [
{
"field": "age_group",
"type": "nominal",
"title": "Age group"
},
{
"field": "sex",
"type": "nominal",
"title": "Sex"
},
{
"field": "number_of_patients",
"type": "quantitative",
"title": "Number of patients who received the diagnosis"
}
]
}
}
} |
{} |
2021-07-08T11:10:59.400Z |
arnold |
10.42.2.0 |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 |
[] |
{
"error": "'repeat' is a required property\n\nFailed validating 'required' in schema[0]:\n {'additionalProperties': False,\n 'properties': {'$schema': {'description': 'URL to [JSON '\n 'schema](http://json-schema.org/) '\n 'for a Vega-Lite '\n 'specification. Unless you '\n 'have a reason to change '\n 'this, use '\n '`https://vega.github.io/schema/vega-lite/v5.json`. '\n 'Setting the `$schema` '\n 'property allows automatic '\n 'validation and '\n 'autocomplete in editors '\n 'that support JSON schema.',\n 'format': 'uri',\n 'type': 'string'},\n 'align': {'anyOf': [{'$ref': '#/definitions/LayoutAlign'},\n {'$ref': '#/definitions/RowCol<LayoutAlign>'}],\n 'description': 'The alignment to apply to '\n 'grid rows and columns. The '\n 'supported string values are '\n '`\"all\"`, `\"each\"`, and '\n '`\"none\"`.\\n'\n '\\n'\n '- For `\"none\"`, a flow '\n 'layout will be used, in '\n 'which adjacent subviews are '\n 'simply placed one after the '\n 'other. - For `\"each\"`, '\n 'subviews will be aligned '\n 'into a clean grid structure, '\n 'but each row or column may '\n 'be of variable size. - For '\n '`\"all\"`, subviews will be '\n 'aligned and each row or '\n 'column will be sized '\n 'identically based on the '\n 'maximum observed size. '\n 'String values for this '\n 'property will be applied to '\n 'both grid rows and columns.\\n'\n '\\n'\n 'Alternatively, an object '\n 'value of the form `{\"row\": '\n 'string, \"column\": string}` '\n 'can be used to supply '\n 'different alignments for '\n 'rows and columns.\\n'\n '\\n'\n '__Default value:__ `\"all\"`.'},\n 'autosize': {'anyOf': [{'$ref': '#/definitions/AutosizeType'},\n {'$ref': '#/definitions/AutoSizeParams'}],\n 'description': 'How the visualization '\n 'size should be '\n 'determined. If a string, '\n 'should be one of `\"pad\"`, '\n '`\"fit\"` or `\"none\"`. '\n 'Object values can '\n 'additionally specify '\n 'parameters for content '\n 'sizing and automatic '\n 'resizing.\\n'\n '\\n'\n '__Default value__: `pad`'},\n 'background': {'anyOf': [{'$ref': '#/definitions/Color'},\n {'$ref': '#/definitions/ExprRef'}],\n 'description': 'CSS color property to '\n 'use as the background '\n 'of the entire view.\\n'\n '\\n'\n '__Default value:__ '\n '`\"white\"`'},\n 'bounds': {'description': 'The bounds calculation '\n 'method to use for '\n 'determining the extent of a '\n 'sub-plot. One of `full` '\n '(the default) or `flush`.\\n'\n '\\n'\n '- If set to `full`, the '\n 'entire calculated bounds '\n '(including axes, title, and '\n 'legend) will be used. - If '\n 'set to `flush`, only the '\n 'specified width and height '\n 'values for the sub-view '\n 'will be used. The `flush` '\n 'setting can be useful when '\n 'attempting to place '\n 'sub-plots without axes or '\n 'legends into a uniform grid '\n 'structure.\\n'\n '\\n'\n '__Default value:__ `\"full\"`',\n 'enum': ['full', 'flush'],\n 'type': 'string'},\n 'center': {'anyOf': [{'type': 'boolean'},\n {'$ref': '#/definitions/RowCol<boolean>'}],\n 'description': 'Boolean flag indicating if '\n 'subviews should be centered '\n 'relative to their '\n 'respective rows or '\n 'columns.\\n'\n '\\n'\n 'An object value of the form '\n '`{\"row\": boolean, \"column\": '\n 'boolean}` can be used to '\n 'supply different centering '\n 'values for rows and '\n 'columns.\\n'\n '\\n'\n '__Default value:__ `false`'},\n 'columns': {'description': 'The number of columns to '\n 'include in the view '\n 'composition layout.\\n'\n '\\n'\n '__Default value__: '\n '`undefined` -- An infinite '\n 'number of columns (a '\n 'single row) will be '\n 'assumed. This is '\n 'equivalent to `hconcat` '\n '(for `concat`) and to '\n 'using the `column` channel '\n '(for `facet` and '\n '`repeat`).\\n'\n '\\n'\n '__Note__:\\n'\n '\\n'\n '1) This property is only '\n 'for: - the general '\n '(wrappable) `concat` '\n 'operator (not '\n '`hconcat`/`vconcat`) - the '\n '`facet` and `repeat` '\n 'operator with one '\n 'field/repetition '\n 'definition (without '\n 'row/column nesting)\\n'\n '\\n'\n '2) Setting the `columns` '\n 'to `1` is equivalent to '\n '`vconcat` (for `concat`) '\n 'and to using the `row` '\n 'channel (for `facet` and '\n '`repeat`).',\n 'type': 'number'},\n 'config': {'$ref': '#/definitions/Config',\n 'description': 'Vega-Lite configuration '\n 'object. This property can '\n 'only be defined at the '\n 'top-level of a '\n 'specification.'},\n 'data': {'anyOf': [{'$ref': '#/definitions/Data'},\n {'type': 'null'}],\n 'description': 'An object describing the data '\n 'source. Set to `null` to '\n \"ignore the parent's data \"\n 'source. If no data is set, it '\n 'is derived from the parent.'},\n 'datasets': {'$ref': '#/definitions/Datasets',\n 'description': 'A global data store for '\n 'named datasets. This is a '\n 'mapping from names to '\n 'inline datasets. This can '\n 'be an array of objects or '\n 'primitive values or a '\n 'string. Arrays of '\n 'primitive values are '\n 'ingested as objects with '\n 'a `data` property.'},\n 'description': {'description': 'Description of this '\n 'mark for commenting '\n 'purpose.',\n 'type': 'string'},\n 'name': {'description': 'Name of the visualization for '\n 'later reference.',\n 'type': 'string'},\n 'padding': {'anyOf': [{'$ref': '#/definitions/Padding'},\n {'$ref': '#/definitions/ExprRef'}],\n 'description': 'The default visualization '\n 'padding, in pixels, from '\n 'the edge of the '\n 'visualization canvas to '\n 'the data rectangle. If a '\n 'number, specifies padding '\n 'for all sides. If an '\n 'object, the value should '\n 'have the format `{\"left\": '\n '5, \"top\": 5, \"right\": 5, '\n '\"bottom\": 5}` to specify '\n 'padding for each side of '\n 'the visualization.\\n'\n '\\n'\n '__Default value__: `5`'},\n 'params': {'description': 'Dynamic variables or '\n 'selections that '\n 'parameterize a '\n 'visualization.',\n 'items': {'anyOf': [{'$ref': '#/definitions/VariableParameter'},\n {'$ref': '#/definitions/TopLevelSelectionParameter'}]},\n 'type': 'array'},\n 'repeat': {'anyOf': [{'items': {'type': 'string'},\n 'type': 'array'},\n {'$ref': '#/definitions/RepeatMapping'}],\n 'description': 'Definition for fields to be '\n 'repeated. One of: 1) An '\n 'array of fields to be '\n 'repeated. If `\"repeat\"` is '\n 'an array, the field can be '\n 'referred to as `{\"repeat\": '\n '\"repeat\"}`. The repeated '\n 'views are laid out in a '\n 'wrapped row. You can set '\n 'the number of columns to '\n 'control the wrapping. 2) An '\n 'object that maps `\"row\"` '\n 'and/or `\"column\"` to the '\n 'listed fields to be '\n 'repeated along the '\n 'particular orientations. '\n 'The objects `{\"repeat\": '\n '\"row\"}` and `{\"repeat\": '\n '\"column\"}` can be used to '\n 'refer to the repeated field '\n 'respectively.'},\n 'resolve': {'$ref': '#/definitions/Resolve',\n 'description': 'Scale, axis, and legend '\n 'resolutions for view '\n 'composition '\n 'specifications.'},\n 'spacing': {'anyOf': [{'type': 'number'},\n {'$ref': '#/definitions/RowCol<number>'}],\n 'description': 'The spacing in pixels '\n 'between sub-views of the '\n 'composition operator. An '\n 'object of the form '\n '`{\"row\": number, \"column\": '\n 'number}` can be used to '\n 'set different spacing '\n 'values for rows and '\n 'columns.\\n'\n '\\n'\n '__Default value__: Depends '\n 'on `\"spacing\"` property of '\n '[the view composition '\n 'configuration](https://vega.github.io/vega-lite/docs/config.html#view-config) '\n '(`20` by default)'},\n 'spec': {'$ref': '#/definitions/NonNormalizedSpec',\n 'description': 'A specification of the view '\n 'that gets repeated.'},\n 'title': {'anyOf': [{'$ref': '#/definitions/Text'},\n {'$ref': '#/definitions/TitleParams'}],\n 'description': 'Title for the plot.'},\n 'transform': {'description': 'An array of data '\n 'transformations such as '\n 'filter and new field '\n 'calculation.',\n 'items': {'$ref': '#/definitions/Transform'},\n 'type': 'array'},\n 'usermeta': {'$ref': '#/definitions/Dict',\n 'description': 'Optional metadata that '\n 'will be passed to Vega. '\n 'This object is completely '\n 'ignored by Vega and '\n 'Vega-Lite and can be used '\n 'for custom metadata.'}},\n 'required': ['repeat', 'spec'],\n 'type': 'object'}\n\nOn instance:\n {'$schema': 'https://vega.github.io/schema/vega-lite/v5.json',\n 'data': {'url': 'https://datagraphics.dckube.scilifelab.se/api/dataset/6b24d7130bef4bf78f567d9c9ad96f59.csv'}}",
"specification": {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6b24d7130bef4bf78f567d9c9ad96f59.csv"
}
}
} |
{} |