Graph color
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 287
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Graph color
I have set my bar graph color to yellow in the config file
blocks['graph_6'] = {
graph: 'bar',
datasetColors: ['yellow']
}
but the bar graph stays white.
Do i have to change something else?
blocks['graph_6'] = {
graph: 'bar',
datasetColors: ['yellow']
}
but the bar graph stays white.
Do i have to change something else?
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Graph color
Hmm i have the same problem
even no bar, no color, no height works for me.
Did it in the custom.js (earlier versions) and in the config.js. Nothing changes.

config.js or custom.js
And is it possible to get rid of the icons and text?
edit: remove line 688 in the graph.js

I did it before to change the graph.js delete some title html tags, but now the grapsh.js has a new code
PS. i have to arange the text and the graph after the graph works again. Normally it looks like

even no bar, no color, no height works for me.
Did it in the custom.js (earlier versions) and in the config.js. Nothing changes.

config.js or custom.js
Code: Select all
blocks['graph_7257'] = {
graph: 'bar',
datasetColors: ['yellow']
}
edit: remove line 688 in the graph.js

I did it before to change the graph.js delete some title html tags, but now the grapsh.js has a new code
PS. i have to arange the text and the graph after the graph works again. Normally it looks like

- clinkadink
- Posts: 417
- Joined: Tuesday 31 December 2019 1:15
- Target OS: Linux
- Domoticz version: 2020.2
- Location: Swindon, UK
- Contact:
Re: Graph color
For device idx 6, try adding the following line to your block.
Code: Select all
devices: [6],
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Graph color
Tnx i already found it on another postclinkadink wrote: ↑Thursday 13 February 2020 18:51 For device idx 6, try adding the following line to your block.
Code: Select all
devices: [6],

Code: Select all
blocks['tempbuiten'] = {
graphTypes: ['te'],
devices: [7257],
height: '60px',
graph: 'line',
datasetColors: ['red'],
borderWidth: 1,
displayFormats : {
minute: 'dd h:mm'
}
}
- clinkadink
- Posts: 417
- Joined: Tuesday 31 December 2019 1:15
- Target OS: Linux
- Domoticz version: 2020.2
- Location: Swindon, UK
- Contact:
Re: Graph color
The "height" issue was a reported bug and was fixed late last night. Make sure you have the latest beta.
https://github.com/Dashticz/dashticz/tree/beta
https://github.com/Dashticz/dashticz/tree/beta
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Graph color
I installed the beta 1 hour ago because there was also an issue about some update of the blocks.clinkadink wrote: ↑Thursday 13 February 2020 19:35 The "" issue was a reported bug and was fixed late last night. Make sure you have the latest beta.
https://github.com/Dashticz/dashticz/tree/beta
Code: Select all
blocks['tempbuiten'] = {
graphTypes: ['te'],
devices: [7257],
height: '30px',
graph: 'line',
datasetColors: ['red'],
borderWidth: 1,
displayFormats : {
minute: 'dd h:mm'
},
width: 12,
}

- clinkadink
- Posts: 417
- Joined: Tuesday 31 December 2019 1:15
- Target OS: Linux
- Domoticz version: 2020.2
- Location: Swindon, UK
- Contact:
Re: Graph color
Have you tried without any height added in your block?
Also, try CTRL + F5 to clear your cache? Shouldn't have to, but I cannot think what else - as this was part of last nights beta.
The fix is on line 48 of js/components/graph.js. It should show:
Also, try CTRL + F5 to clear your cache? Shouldn't have to, but I cannot think what else - as this was part of last nights beta.
The fix is on line 48 of js/components/graph.js. It should show:
Code: Select all
obj.blockId = me.mountPoint.slice(1);
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
- clinkadink
- Posts: 417
- Joined: Tuesday 31 December 2019 1:15
- Target OS: Linux
- Domoticz version: 2020.2
- Location: Swindon, UK
- Contact:
Re: Graph color
The height was fixed on Friday (10pm) in the latest beta. You can now set height in block config.Vomera wrote: ↑Thursday 13 February 2020 19:56I installed the beta 1 hour ago because there was also an issue about some update of the blocks.clinkadink wrote: ↑Thursday 13 February 2020 19:35 The "" issue was a reported bug and was fixed late last night. Make sure you have the latest beta.
https://github.com/Dashticz/dashticz/tree/beta
This should be the right code ? I can set it even on 600px , but doesnt work for meCode: Select all
blocks['tempbuiten'] = { graphTypes: ['te'], devices: [7257], height: '30px', graph: 'line', datasetColors: ['red'], borderWidth: 1, displayFormats : { minute: 'dd h:mm' }, width: 12, }
![]()
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Who is online
Users browsing this forum: No registered users and 1 guest