Skip to content

Objects and Properties not Working in JSON Theme File #13

@furstukin

Description

@furstukin

I am trying to set the properties for this chart in my theme file, but the only aspects I can get to work are the background and border, nothing else I add has any affect on the table. For instance here is the Range 1 object property list.

		"range1": {
			"displayName": "Range 1",
			"properties": {
				"rangeColor": {
					"displayName": "Color",
					"description": "Range1 arc color",
					"type": {
						"fill": {
							"solid": {
								"color": true
							}
						}
					}
				},
				"thickness": {
					"displayName": "Thickness",
					"description": "Range1 thickness as a fraction of gauge radius",
					"placeHolderText": "50%",
					"type": {
						"numeric": true
					}
				},
				"startValue": {
					"displayName": "Start Value",
					"description": "Range1 start value",
					"type": {
						"numeric": true
					}
				}
			}
		},

And below is an example that I added to my JSON, but only the border and background work. Any ideas why none of the object properties are working?

	"Tachometer1474636471549": {
		"*": {
			"border": [{
				"show": true,
				"outlineColor": {
					"solid": {
						"color": "#000000"
					}
				}
			}],
			"background": [{
				"show": {
					"expr": {
						"Literal": {
							"Value": "true"
						}
					}
				},
				"color": {
					"solid": {
						"color": "#00925B"
					}
				},
				"transparency": 50
			}],
			"range1": [{
				"rangeColor": "#00925B",
				"thickness": 75,
				"startValue": 6
			}]
		}
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions