cancel
Showing results for 
Search instead for 
Did you mean: 

Switchable Dimensions with Datetime

Astroraf
8 - Cloud Apps
8 - Cloud Apps

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"
}
]
}
]
});

 

2 REPLIES 2

DRay
Community Team Member
Community Team Member

Hello @Astroraf,

Thank you for reaching out.

Have you tried that script, and if it's not working, what are the results you are seeing? 

David Raynor (DRay)

Astroraf
8 - Cloud Apps
8 - Cloud Apps

@DRay with this code, jump_to doesn't even show up. I am curious if it's the 

(Calendar)

part, but because I can't see anything nothing is showing up.