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.
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:
https://internal.vantiq.com/docs/system/cbref/index.html#gauge
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.
-P
Attachments:
You must be logged in to view attached files.