Page 1 of 1

Graph color.

Posted: Monday 17 August 2020 17:04
by Alphons
I have a graph for my solarsystem. It's a line graph in color blue but i want the whole graph filled in blue. Can't find the command to fill the graph and make it tranparent. Who can help me?

Re: Graph color.

Posted: Monday 17 August 2020 18:23
by HansieNL
Have you checked: https://dashticz.readthedocs.io/en/mas ... raphs.html?
With lineFill you can fill the graph.

Re: Graph color.

Posted: Monday 17 August 2020 18:35
by Alphons
Yes, checked that but won't work.

Re: Graph color.

Posted: Monday 17 August 2020 19:37
by HansieNL
Can you try: graph: 'bar' to your graph block?

Re: Graph color.

Posted: Monday 17 August 2020 20:17
by Alphons
Now i have bars instead of a line graph. I'm trying to get the graph like the image.
https://i.imgur.com/yaFTZWm.png

Re: Graph color.

Posted: Monday 17 August 2020 22:22
by Lokonli
Alphons wrote: Monday 17 August 2020 20:17 Now i have bars instead of a line graph. I'm trying to get the graph like the image.
https://i.imgur.com/yaFTZWm.png
Try the following:

Code: Select all

blocks['graph_123'] = {
    lineFill: true,
    datasetColors: ['rgba(255,255,255,0.3)'],
    borderColors: ['rgba(255,255,255,0.6)']
}
Instead of 123 use the Domoticz device ID of your device.

Re: Graph color.

Posted: Monday 17 August 2020 22:23
by Lokonli
For a transparent blue fill use:

Code: Select all

    datasetColors: ['rgba(0,0,255,0.3)'],

Re: Graph color.

Posted: Wednesday 26 August 2020 11:02
by Alphons
Works. Thnx