Dashticz: can buttons on graph be removed?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
willemd
Posts: 628
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Dashticz: can buttons on graph be removed?

Post 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.
User avatar
HansieNL
Posts: 960
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz: can buttons on graph be removed?

Post 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;
}
Blah blah blah
willemd
Posts: 628
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Dashticz: can buttons on graph be removed?

Post 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;
}
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests