Dashboards & Visualizations

modify dashboard row height

Contributor

I know how to use the CSS to set the width of the cells, but all my research for anything to do with changing the height of the rows, remains fruitless.
I have tried many things, such as:
.panelrow1col .firstRow{
height=50% !important; }

This didn't do anything. I tried assigning height at many levels, but it never changes.
Any suggestion?

Also, is there any documentation on writing advanced XML? I know I have seen recommendation to use FireBug to see what the ending XML look like and use that to figure out what to modify, but I find this method too much "trial and error".

1 Solution

Contributor

I finally found how to do what I wanted.
The following solution is for a dashboard with 3 rows, no app bar, no navigation bar. In order for the rows to adjust their height so that the whole dashboard fills up the entire browser window, you add:

<param name="height">25vh</param>

to all your FlashChart modules like this

<module name="FlashChart">
    <param name="width">100%</param>
    <param name="height">25vh</param>
    <module name="ConvertToDrilldownSearch">
        <module name="ViewRedirector">
            <param name="viewTarget">flashtimeline</param>
        </module>
    </module>
</module>

This makes the height of the FlasChart 25% of the "view height", which is the height of the browser. I picked 25% as a compromise, because this applies the selected height only to the chart, it doesn't take into account the height used by other graphic parts. So, it isn't a perfect solution, but it's much better than before.

View solution in original post

0 Karma

Contributor

I finally found how to do what I wanted.
The following solution is for a dashboard with 3 rows, no app bar, no navigation bar. In order for the rows to adjust their height so that the whole dashboard fills up the entire browser window, you add:

<param name="height">25vh</param>

to all your FlashChart modules like this

<module name="FlashChart">
    <param name="width">100%</param>
    <param name="height">25vh</param>
    <module name="ConvertToDrilldownSearch">
        <module name="ViewRedirector">
            <param name="viewTarget">flashtimeline</param>
        </module>
    </module>
</module>

This makes the height of the FlasChart 25% of the "view height", which is the height of the browser. I picked 25% as a compromise, because this applies the selected height only to the chart, it doesn't take into account the height used by other graphic parts. So, it isn't a perfect solution, but it's much better than before.

View solution in original post

0 Karma

Path Finder

I think this is answered on http://answers.splunk.com/answers/9427/how-to-modify-the-size-of-chart-in-dashboard.

What I did was use

 <option name="height">300px</option>

Note that this is an option inside the chart element.

Contributor

I had found that one, but it's not what I am looking for. The height of the rows does not adjust to fill the whole screen. You have to specify a fixed height. Even imagining that people are told to use this dashboard in a maximized browser, If the user has a different screen resolution than the one I used, then the total height of the rows will be either too large or too small. The point is to make the dashboard total height self adjusting to the browser's view height.

0 Karma

Contributor

The dashboards I am building will end up on some large screens throughout our offices. I want them to fill the whole screen height whether they are 2 or 3 charts.

0 Karma

Builder

There are a lot of options for height control. Most downstream modules actually have direct height controls, which would be the main method I'd recommend, what are you trying to accomplish?

0 Karma