Update chart configurations to set fixed width and enhance export options in quiz

This commit is contained in:
2025-01-29 16:59:29 +02:00
parent 7cf61a1cef
commit f7a667616b
23 changed files with 32 additions and 23 deletions

View File

@@ -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
};