Page 1 of 1

Graph color

Posted: Thursday 13 February 2020 7:21
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?

Re: Graph color

Posted: Thursday 13 February 2020 16:13
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

Re: Graph color

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

Code: Select all

devices: [6],

Re: Graph color

Posted: Thursday 13 February 2020 19:33
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

Re: Graph color

Posted: Thursday 13 February 2020 19:35
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

Re: Graph color

Posted: Thursday 13 February 2020 19:56
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 :)

Re: Graph color

Posted: Thursday 13 February 2020 20:04
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);

Re: Graph color

Posted: Sunday 16 February 2020 9:54
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.