mirror of
https://github.com/olehomelchenko/minivlat-local-ua.git
synced 2025-12-21 13:12:23 +00:00
Update chart configurations to set fixed width and enhance export options in quiz
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"data": {
|
||||
"url": "data/barchart.csv", "format": {"type": "csv"}
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"mark": {
|
||||
"type": "bar"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"data": {
|
||||
"url": "data/barchart.csv", "format": {"type": "csv"}
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"mark": {
|
||||
"type": "bar"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/bubblechart.csv"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/bubblechart.csv"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 500,
|
||||
"projection": {
|
||||
"type": "albersUsa"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
|
||||
"height": 500,
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"title": "Кількість шлюбів в першому півріччі 2024 р.",
|
||||
"config": {
|
||||
"padding": 0,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/histogram.csv"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/histogram.csv"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"title": "Oil Prices",
|
||||
"data": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"title": "Ціни на нафту",
|
||||
"data": {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"titleFontWeight": "bold"
|
||||
}
|
||||
},
|
||||
"width": "container", "height": 400,
|
||||
"width": 800, "height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
{"brand": "Samsung", "share": 17.6},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"titleFontWeight": "bold"
|
||||
}
|
||||
},
|
||||
"width": "container", "height": 400,
|
||||
"width": 800, "height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
{"brand": "Samsung", "share": 17.6},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/scatterplot.csv"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"url": "data/scatterplot.csv"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"data": {
|
||||
"url": "data/stacked100.csv"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"encoding": {
|
||||
"y": {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"data": {
|
||||
"url": "data/stacked100.csv"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"encoding": {
|
||||
"y": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"fontSize": 16,
|
||||
"fontWeight": "bold"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"data": {
|
||||
"values": [
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"data": {
|
||||
"url": "data/stackedbarchart.csv"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"encoding": {
|
||||
"x": {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"data": {
|
||||
"url": "data/stackedbarchart.csv"
|
||||
},
|
||||
"width": "container",
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"encoding": {
|
||||
"x": {
|
||||
|
||||
@@ -79,7 +79,16 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
// Embed the Vega-Lite chart
|
||||
const embedOptions = {
|
||||
actions: false, // Disable kebab menu
|
||||
downloadFileName: `${question.chart}-${version}`,
|
||||
actions: {
|
||||
export: {
|
||||
svg: true,
|
||||
png: true
|
||||
},
|
||||
source: false,
|
||||
compiled: false,
|
||||
editor: false
|
||||
},
|
||||
tooltip: false // Disable tooltips
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user