Forum Discussion

Astroraf's avatar
Astroraf
Data Pipeline
04-10-2024

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

 

2 Replies

  • 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? 

    • Astroraf's avatar
      Astroraf
      Data Pipeline

      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.