Astroraf
04-10-2024Data Pipeline
Switchable Dimensions with Datetime
Hello Everyone,
I am trying to use Switchable Dimensions on a line chart with a datetime table. The objective is to switch from yearly, monthly, and quarterly timeframes using switchable dimensions. In Sisense's documentation, they give an example that I have tried with no luck. Has anyone tried this before and it working?
prism.registerSwitchDimension({
widget: widget,
dimensions: [
{
panel: 'categories',
dims: [
{ "index":0,
"dim":"[dimDate.Date (Calendar)]",
"datatype": "datetime",
"title":"Weeks",
"level": "weeks"
},
{ "index":0,
"dim":"[dimStrategy.strategy]",
"datatype": "text",
"title":"strategy"
}
]
}
]
});