Changed various aesthetical chart options

This commit is contained in:
MatteoBiscosi 2021-12-13 13:45:33 +01:00
parent e65e9f9304
commit 9a8a0eb58a
4 changed files with 89 additions and 18 deletions

View file

@ -39,6 +39,19 @@ local function check_widget_existance(widgets, name)
end
end
local color_palette = {
"#32a0a8",
"#fa8072",
"#2E8B57",
"#00FFFF",
"#00FF00",
"#ff00ff",
"#FFA500",
"#FF0000",
"#8F00FF",
"#0000FF",
}
---Register a new Chart.js widget to be rendered
---@param name any
---@param type any
@ -203,4 +216,8 @@ function widget_gui_utils.datasource(name, params)
return { endpoint = name .. build_query_params(params or {}), name = name, params = params }
end
function widget_gui_utils.get_color_palette()
return color_palette
end
return widget_gui_utils