Page 1 of 1

Dashticz: can buttons on graph be removed?

Posted: Thursday 21 March 2024 13:11
by willemd
Can I totally remove the button on top of a graph in Dashticz?

I mean the buttons normally used to select a range for the display, like today, month or year.
I just want to display today and not have any other range selectable and therefore remove the buttons so all the space is available for the graph itself.
I already tried buttonsSize:0 but that just minimizes the buttons, it does not remove them.

Re: Dashticz: can buttons on graph be removed?

Posted: Saturday 23 March 2024 16:06
by HansieNL
If you want to display today as 1st you can set that by adding the following code to your config.js:

Code: Select all

config['standard_graph'] = 'today';
To remove the graphheader you can add the following code to custom.css:

Code: Select all

div.graphheader {
	display: none !important;
}
To remove only the buttons you can add the following code to custom.css:

Code: Select all

div.graphbuttons {
	display: none !important;
}

Re: Dashticz: can buttons on graph be removed?

Posted: Sunday 24 March 2024 10:35
by willemd
Thanks,
I was not thinking about custom.css but that's indeed the solution.
The graphbuttons example works fine and to remove the buttons for one graph I now use:

Code: Select all

[data-id='graph_EL_usage'] .graphbuttons {
        display: none !important;
}