Dimension and Break By Changer With BloX

Comments

8 comments

  • Avatar
    Joseph Meszaros

    Hi Artem!

    This is an excellent widget option and exactly what we need for our dashboards, however is there a way to get it to work where it will only change on column at a time within a pivot? So for example having one dimension changer widget that changes one column and then a second dimension changer widget that changes the second column.

    Thanks!

    Joe

    0
    Comment actions Permalink
  • Avatar
    Artem Yevtushenko (Edited )

    Hey Joe, this is possible by creating two actions. If you notice in the script we're modifying the first item in the panel by default.

      widget.metadata.panels[0].items[0] = dimToSwapTo;

    Your second action could simply modify the second. There's no issue about them working in tandem.

    1
    Comment actions Permalink
  • Avatar
    Joseph Meszaros

    Hi Artem!

    Thanks for that! Works perfect. The only other issue that I'm having is that there seems to be a bug when it comes to being able to move the BloX widget around the dashboard. I've tested this by just adding the BloX widget to the dashboard with no code and I'm able to move it to any position on the dashboard, however once I added the code you've provided it seems that the title bar does not display properly so I'm unable to move the widget from the bottom of the dashboard. Any ideas on how to resolve this?

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Joseph Meszaros

    Hi Aretm! 

    Also, would there be a way to move the apply button so that it is next to do dimension changer?

    Thanks!

    Joe

    1
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Artem,

    I love it!  Great job!!  More!!!

    Regards, Jim

    0
    Comment actions Permalink
  • Avatar
    Tamir Basin (Edited )

    Beautiful Artem!

    0
    Comment actions Permalink
  • Avatar
    Nikhil Palla

    Hi Artem,

    This works great and I love it. Thanks a lot for sharing this option.

    However is it possible to assign a color for selected button in the action. For Example, when we select 'Date' button can we assign a yellow color and  other unselected buttons('Category', 'Condition', 'Age Range') as grey color.

    Thanks in advance.

     

    Regards

    Nikhil

     

    0
    Comment actions Permalink
  • Avatar
    Artem Yevtushenko

    Hi Nikhil Palla you can add a style hint to the action.

    {
    "type": "Filters",
    "title": "Action",
    "style": {
    "background-color": "blue",
    "color": "white"
    },
    "data": {}
    }
    0
    Comment actions Permalink

Please sign in to leave a comment.