Graph color.

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Alphons
Posts: 5
Joined: Friday 16 February 2018 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Graph color.

Post 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?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Graph color.

Post by HansieNL »

Have you checked: https://dashticz.readthedocs.io/en/mas ... raphs.html?
With lineFill you can fill the graph.
Blah blah blah
Alphons
Posts: 5
Joined: Friday 16 February 2018 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: Graph color.

Post by Alphons »

Yes, checked that but won't work.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Graph color.

Post by HansieNL »

Can you try: graph: 'bar' to your graph block?
Blah blah blah
Alphons
Posts: 5
Joined: Friday 16 February 2018 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: Graph color.

Post 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
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Graph color.

Post 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.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Graph color.

Post by Lokonli »

For a transparent blue fill use:

Code: Select all

    datasetColors: ['rgba(0,0,255,0.3)'],
Alphons
Posts: 5
Joined: Friday 16 February 2018 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: Graph color.

Post by Alphons »

Works. Thnx
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest