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.
Dashticz: can buttons on graph be removed?
Moderators: leecollings, htilburgs, robgeerts
- 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?
If you want to display today as 1st you can set that by adding the following code to your config.js:
To remove the graphheader you can add the following code to custom.css:
To remove only the buttons you can add the following code to custom.css:
Code: Select all
config['standard_graph'] = 'today';
Code: Select all
div.graphheader {
display: none !important;
}
Code: Select all
div.graphbuttons {
display: none !important;
}
Blah blah blah
-
- 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?
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:
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;
}
Who is online
Users browsing this forum: No registered users and 0 guests