mirror of
https://github.com/olehomelchenko/minivlat-local-ua.git
synced 2025-12-21 21:22:24 +00:00
reorganize files
This commit is contained in:
54
public/charts/histogram-ukrainian.vl.json
Normal file
54
public/charts/histogram-ukrainian.vl.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
|
||||
"title": {
|
||||
"text": "Відстань поїздки та клієнти",
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": 600,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/histogram.csv"
|
||||
},
|
||||
"mark": {
|
||||
"type": "bar",
|
||||
"fill": "#3182bd",
|
||||
"tooltip": true
|
||||
},
|
||||
"encoding": {
|
||||
"x": {
|
||||
"field": "Trip_Distance",
|
||||
"type": "quantitative",
|
||||
"bin": {
|
||||
"step": 10
|
||||
},
|
||||
"axis": {
|
||||
"title": "Відстань (км)",
|
||||
"titleFontWeight": "bold",
|
||||
"grid": false
|
||||
}
|
||||
},
|
||||
"y": {
|
||||
"aggregate": "count",
|
||||
"axis": {
|
||||
"title": "Кількість клієнтів",
|
||||
"titleFontWeight": "bold",
|
||||
"grid": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"axis": {
|
||||
"grid": true,
|
||||
"gridColor": "#ddd",
|
||||
"labelFontSize": 11,
|
||||
"titleFontSize": 12
|
||||
},
|
||||
"view": {
|
||||
"stroke": null
|
||||
},
|
||||
"bar": {
|
||||
"binSpacing": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user