Graph color

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
edwin1234
Posts: 287
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Graph color

Post by edwin1234 »

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?
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Graph color

Post by Vomera »

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.

Image

config.js or custom.js

Code: Select all

blocks['graph_7257'] = {
graph: 'bar',
datasetColors: ['yellow']
}
And is it possible to get rid of the icons and text?
edit: remove line 688 in the graph.js

Image

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

Image
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Graph color

Post by clinkadink »

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."
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Graph color

Post by Vomera »

clinkadink wrote: Thursday 13 February 2020 18:51 For device idx 6, try adding the following line to your block.

Code: Select all

devices: [6],
Tnx i already found it on another post :D

Code: Select all

blocks['tempbuiten'] = {
graphTypes: ['te'],
devices: [7257],
height: '60px',
graph: 'line',
datasetColors: ['red'],
borderWidth: 1,
displayFormats : {
      minute: 'dd h:mm'
 
    }

}
Only the hight doenst work, still figuring out
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Graph color

Post by clinkadink »

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
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Graph color

Post by Vomera »

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
I installed the beta 1 hour ago because there was also an issue about some update of the blocks.

Code: Select all

blocks['tempbuiten'] = {
graphTypes: ['te'],
devices: [7257],
height: '30px',
graph: 'line',
datasetColors: ['red'],
borderWidth: 1,
displayFormats : {
      minute: 'dd h:mm'
 
    },		
width: 12,
}
This should be the right code ? I can set it even on 600px , but doesnt work for me :)
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Graph color

Post by clinkadink »

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:

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."
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Graph color

Post by clinkadink »

Vomera wrote: Thursday 13 February 2020 19:56
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
I installed the beta 1 hour ago because there was also an issue about some update of the blocks.

Code: Select all

blocks['tempbuiten'] = {
graphTypes: ['te'],
devices: [7257],
height: '30px',
graph: 'line',
datasetColors: ['red'],
borderWidth: 1,
displayFormats : {
      minute: 'dd h:mm'
 
    },		
width: 12,
}
This should be the right code ? I can set it even on 600px , but doesnt work for me :)
The height was fixed on Friday (10pm) in the latest beta. You can now set height in block config.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest