Oct 2, 2020
Posted by Patrick Burma

I was able to do this by adding the following code to the pages On Start.

var chart = client.getWidget(“Gauge1”);
var config = chart.chartConfig;
config.shapes[0][‘background-color’] = “transparent”;
config.scaleR.guide.items[0] = “transparent”;
chart.chartConfig = config;

To arrive at this I looked at the widget settings in the docs:


Then I took the sample code and added a console.log(config) to the pages On Start code area to determine what the available json keys/values are there and then did a little trial and error to figure out the items and the shapes arrays will set the bg color.


You must be logged in to view attached files.
© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy