You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wondering if there's a way to change the scale type of the X/Y Axis. The documentation only allows a string so i haven't been able to find a way to use a variable on it.
Apologies if formatting is off, this is my first post on github.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just wondering if there's a way to change the scale type of the X/Y Axis. The documentation only allows a string so i haven't been able to find a way to use a variable on it.
Apologies if formatting is off, this is my first post on github.
Thanks.
"params":[
{
"name":"scaleTypeX",
"value": "log"
}
],
"layer": [
{
"mark": {
"type": "line",
"tooltip": true
},
"encoding": {
"x": {
"field": "RANKPercentileMeasure_2",
"type": "quantitative",
"scale":{
"zero": false,
"type": "linear" --Change this to Log/Linear dynamically
}
},
"y":
{
"field": "RANKPercentileMeasure_1",
"type": "quantitative",
"scale":{
"zero": false,
"type": "log", --Change this to Log/Linear dynamically
"base": 0
},
Beta Was this translation helpful? Give feedback.
All reactions