Dashticz Graphs - Features, Fixes & Updates

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Re: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

There isn't a block param, but you can achieve this with custom data.
https://dashticz.readthedocs.io/en/beta ... the-y-axes
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
dennis075
Posts: 11
Joined: Saturday 20 January 2018 12:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by dennis075 »

clinkadink wrote: Sunday 03 May 2020 18:10 There isn't a block param, but you can achieve this with custom data.
https://dashticz.readthedocs.io/en/beta ... the-y-axes
I'm using custom data, for example:

Code: Select all

blocks['my_graph2'] = {
	devices:[108],
	graph: ['bar'],
	legend: false,
	maxTicksLimit: 15,
	barWidth: 0.8,
	borderWidth: 13,
	height: 350,
	beginAtZero: true,
	datasetColors:['white'],
	custom : {
		"last day": {
				ylabels: ['kWh'],
				range: 'day',
				filter: '1 day',
				data: {
					Verbruik: 'd.v_108'
				}
		}
	}
}
Tried some options from the link you provided but can't find the right one....
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Jimster »

clinkadink wrote: Sunday 03 May 2020 10:33
Jimster wrote: Sunday 03 May 2020 10:31 Great! This works. Thanks a lot!
Thanks for confirming. I will get this fixed ;)
Hi clickadink, is May 4th also already visible in your graphs? Mine is showing May 4th with data from today I guess.
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by JanvdW »

clinkadink wrote: Sunday 03 May 2020 9:41
JanvdW wrote: Saturday 02 May 2020 23:46 Yes, this piece of code is in the en_US.json
Ok, thanks for confirming. Is your Dashticz set to en_US or another language? If it is another language, please can you check that language file too.

When you hover over the graph, are there any errors in DevTools?

This is how my block looks:

Code: Select all

blocks['all_zones'] = {	
  title: 'Room Temperatures',
  devices: [6, 11, 12, 8, 14, 9, 15, 235, 10, 13],
  datasetColors: ['dodgerblue','chocolate', 'darkred', 'gold'],
  groupByDevice: true
}
It appears that my problem is caused by this parameter in the config:

Code: Select all

groupByDevice: 'horizontal', 
When I change this to your config setting it's displaying the setpoint values too.

Code: Select all

groupByDevice: true
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Jimster »

clinkadink wrote: Sunday 03 May 2020 10:25 OK, it seems that if the locale isn't set to en_US, it doesn't understand "Monday".

In js/components/graph.js line 639, if you change this ...

Code: Select all

.day("Monday")
To this ...

Code: Select all

.day(1)
It works for me with my language set to nl_NL. Please test and confirm, I will then raise the change.
I did some testing. When I change .day(1) to .day(2), the week will start on tuesday. But the graphs are exactly the same, it doesn't matter on which day the week starts.
JediMax
Posts: 14
Joined: Tuesday 23 April 2019 14:35
Target OS: Linux
Domoticz version: 2020.2
Location: Kyiv, Ukraine
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by JediMax »

Hallo!
Thank you for your work.
I start to use Dashticz beta and I have some problem.
1. I can't hide graph buttons. Code like

Code: Select all

.block_multigraph_outside .graph_buttons {
  display: none
}
or

Code: Select all

.block_multigraph_outside .graph_header {
  display: none;
}
not working.
2. Code

Code: Select all

options: {
        	scales: {
            		yAxes: [{
                		ticks: {
                    		min: 45,
                    		max: 55
                			}
             			}]
        		}
	
		}
on beta not working, but work on non-beta.
3. I try to add camera view. [---SOLVED---]
Code like

Code: Select all

frames.camera123 = {
	frameurl: "http://192.168.1.150/cgi-bin/snapshot.cgi?loginuse=domoticz&loginpas=Domo1234?channel=0",
	height: 320, //height of the block in pixels
	width: 6,
	refresh: 3000
working, but without refresh.
But this

Code: Select all

blocks['camera_1'] = {
        type: 'camera',
        image: 'http://192.168.1.150/cgi-bin/snapshot.cgi?loginuse=domoticz&loginpas=Domo1234?channel=0',
        refresh: 3000,
        width: 12,
	height: '300px'
not working at all.[---SOLVED---]
4. Sometimes I see black sircles near left-bottom corner of graphs.
Can you help me? What I do wrong?
Last edited by JediMax on Tuesday 12 May 2020 12:19, edited 3 times in total.
nfuse
Posts: 32
Joined: Thursday 26 March 2020 11:37
Target OS: -
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by nfuse »

JediMax wrote: Thursday 07 May 2020 12:07 Hallo!
Thank you for your work.
I start to use Dashticz beta and I have some problem.
1. I can't hide graph buttons. Code like

Code: Select all

.block_multigraph_outside .graph_buttons {
  display: none
}
not working.
2. Code

Code: Select all

options: {
        	scales: {
            		yAxes: [{
                		ticks: {
                    		min: 45,
                    		max: 55
                			}
             			}]
        		}
	
		}
on beta not working, but work on non-beta.
3. I try to add camera view. Code like

Code: Select all

frames.camera123 = {
	frameurl: "http://192.168.1.150/cgi-bin/snapshot.cgi?loginuse=domoticz&loginpas=Domo1234?channel=0",
	height: 320, //height of the block in pixels
	width: 6,
	refresh: 3000
working, but without refresh.
But this

Code: Select all

blocks['camera_1'] = {
        type: 'camera',
        image: 'http://192.168.1.150/cgi-bin/snapshot.cgi?loginuse=domoticz&loginpas=Domo1234?channel=0',
        refresh: 3000,
        width: 12,
	height: '300px'
not working at all.
4. Sometimes I see black sircles near left-bottom corner of graphs.
Can you help me? What I do wrong?
this works for me

Code: Select all

blocks['frontdoor_cam'] = {
   type: 'camera',
   imageUrl: 'http://192.168.2.9:8080/camsnapshot.jpg?idx=1',
   videoUrl: 'http://192.168.2.9:8080/camsnapshot.jpg?idx=1', 
   refresh: 1000,
   width: 12,
   height: 355
}
the only thing not working is the fullscreen image when i click the image (no streaming video)
docker with sonos http api / mosquitto / zigbee2mqtt assistant / portainer / dashticz / nodeJS on windows with Zigbee2Mqtt, and some flask builds of my own
JediMax
Posts: 14
Joined: Tuesday 23 April 2019 14:35
Target OS: Linux
Domoticz version: 2020.2
Location: Kyiv, Ukraine
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by JediMax »

nfuse wrote: Thursday 07 May 2020 13:17
this works for me

Code: Select all

blocks['frontdoor_cam'] = {
   type: 'camera',
   imageUrl: 'http://192.168.2.9:8080/camsnapshot.jpg?idx=1',
   videoUrl: 'http://192.168.2.9:8080/camsnapshot.jpg?idx=1', 
   refresh: 1000,
   width: 12,
   height: 355
}
the only thing not working is the fullscreen image when i click the image (no streaming video)
This code works for me too. Thank you.
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Jimster »

I have a strange issue with my water meter graph.
I have different views, 6h, 24h and also month, week etc.
The 24h view doesn't show the bars, the tooltip shows a value. But when I change the graph to line, the line is visible.
The 6h view also behaves strange. The bars are visible, but when a new day starts, the bars dissapears. After 6AM in the morning, they appear again.

Output from the debug button:

Code: Select all

{
  "mountPoint": "#block_47",
  "block": {
    "width": 12,
    "datasetColors": [
      "lightblue"
    ],
    "barWidth": 0.9,
    "beginAtZero": true,
    "borderDash": [],
    "borderWidth": 2,
    "buttonsBorder": "white",
    "buttonsColor": "black",
    "buttonsFill": "white",
    "buttonsIcon": "#686868",
    "buttonsMarginX": 2,
    "buttonsMarginY": 0,
    "buttonsPadX": 6,
    "buttonsPadY": 2,
    "buttonsRadius": 0,
    "buttonsShadow": false,
    "buttonsSize": 14,
    "buttonsText": false,
    "cartesian": "linear",
    "custom": {
      "6u": {
        "range": "day",
        "filter": "6 hours",
        "data": {
          "verbruik": "d.v_126*100"
        }
      },
      "24u": {
        "range": "day",
        "filter": "24 hours",
        "data": {
          "verbruik": "d.v_126*100"
        }
      },
      "Mnd": {
        "range": "month",
        "filter": "month",
        "data": {
          "verbruik": "d.v_126*1000"
        }
      },
      "Jr/wk": {
        "range": "year",
        "filter": "year",
        "groupBy": "week",
        "aggregate": "sum",
        "data": {
          "verbruik": "d.v_126*1000"
        }
      },
      "Jr/mnd": {
        "range": "year",
        "filter": "year",
        "groupBy": "month",
        "aggregate": "sum",
        "data": {
          "verbruik": "d.v_126*1000"
        }
      }
    },
    "customHeader": false,
    "debugButton": "true",
    "displayFormats": false,
    "drawOrderDay": false,
    "drawOrderLast": false,
    "drawOrderMonth": false,
    "flash": false,
    "format": true,
    "gradients": false,
    "graph": "bar",
    "graphTypes": false,
    "groupBy": false,
    "groupByDevice": false,
    "height": "250px",
    "iconColour": "grey",
    "interval": 1,
    "legend": false,
    "lineFill": false,
    "lineTension": 0.1,
    "maxTicksLimit": null,
    "method": 1,
    "pointBorderColor": [
      "grey"
    ],
    "pointBorderWidth": 0,
    "pointRadius": 0,
    "pointStyle": false,
    "range": "initial",
    "refresh": 300,
    "reverseTime": false,
    "sortDevices": false,
    "spanGaps": false,
    "stacked": false,
    "title": "Water",
    "tooltiptotal": false,
    "zoom": false,
    "devices": [
      126
    ],
    "key": "Water-graph"
  },
  "key": "Water-graph",
  "name": "graph",
  "graphDevices": [
    {
      "AddjMulti": 1,
      "AddjMulti2": 1,
      "AddjValue": 0,
      "AddjValue2": 0,
      "BatteryLevel": 255,
      "Counter": "1416.612 m3",
      "CounterToday": "227 Liter",
      "CustomImage": 0,
      "Data": "1416.612 m3",
      "Description": "",
      "Favorite": 0,
      "HardwareID": 29,
      "HardwareName": "Unknown?",
      "HardwareType": "Unknown?",
      "HardwareTypeVal": 0,
      "HaveTimeout": false,
      "ID": "140CE",
      "LastUpdate": "2020-06-09 13:15:41",
      "Name": "Waterverbruik",
      "Notifications": "false",
      "PlanID": "0",
      "PlanIDs": [
        0
      ],
      "Protected": false,
      "ShowNotifications": true,
      "SignalLevel": "-",
      "SubType": "RFXMeter counter",
      "SwitchTypeVal": 2,
      "Timers": "false",
      "Type": "RFXMeter",
      "TypeImg": "counter",
      "Unit": 1,
      "Used": 1,
      "ValueQuantity": "",
      "ValueUnits": "",
      "XOffset": "0",
      "YOffset": "0",
      "idx": 126,
      "currentValue": "227 Liter",
      "name": "Waterverbruik",
      "sensor": "counter",
      "subtype": "RFXMeter counter",
      "title": "Waterverbruik",
      "txtUnit": "Liter",
      "txtUnits": [],
      "type": "RFXMeter",
      "decimals": 0
    }
  ],
  "decimals": 0,
  "graphIdx": "block_47",
  "lastRefreshTime": 1591701338,
  "range": "day",
  "title": "Water",
  "params": [
    "type=graph&sensor=counter&idx=126&range=day&method=1"
  ],
  "subtype": "RFXMeter counter",
  "txtUnits": [
    "Liter"
  ],
  "data": {
    "result": [
      {
        "d": "2020-06-08 13:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 13:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:15",
        "v_126": "0.204"
      },
      {
        "d": "2020-06-08 14:20",
        "v_126": "0.252"
      },
      {
        "d": "2020-06-08 14:25",
        "v_126": "0.096"
      },
      {
        "d": "2020-06-08 14:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:35",
        "v_126": "0.084"
      },
      {
        "d": "2020-06-08 14:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 14:45",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-08 14:50",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 14:55",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 15:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:10",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 15:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:40",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 15:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 15:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:00",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-08 16:05",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-08 16:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:45",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 16:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 16:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:10",
        "v_126": "0.144"
      },
      {
        "d": "2020-06-08 17:15",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 17:20",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 17:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 17:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:15",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 18:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:40",
        "v_126": "0.084"
      },
      {
        "d": "2020-06-08 18:45",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 18:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 18:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 19:00",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 19:05",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 19:10",
        "v_126": "0.033"
      },
      {
        "d": "2020-06-08 19:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 19:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 19:25",
        "v_126": "0.011"
      },
      {
        "d": "2020-06-08 19:30",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 19:35",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 19:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 19:45",
        "v_126": "0.209"
      },
      {
        "d": "2020-06-08 19:50",
        "v_126": "0.384"
      },
      {
        "d": "2020-06-08 19:55",
        "v_126": "0.252"
      },
      {
        "d": "2020-06-08 20:00",
        "v_126": "0.022"
      },
      {
        "d": "2020-06-08 20:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:15",
        "v_126": "0.048"
      },
      {
        "d": "2020-06-08 20:20",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-08 20:25",
        "v_126": "0.099"
      },
      {
        "d": "2020-06-08 20:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 20:55",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-08 21:00",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 21:05",
        "v_126": "0.048"
      },
      {
        "d": "2020-06-08 21:10",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-08 21:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:35",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-08 21:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 21:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:25",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-08 22:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:45",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-08 22:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 22:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:10",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-08 23:15",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 23:20",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-08 23:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:35",
        "v_126": "0.180"
      },
      {
        "d": "2020-06-08 23:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-08 23:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:20",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 00:25",
        "v_126": "0.144"
      },
      {
        "d": "2020-06-09 00:30",
        "v_126": "0.396"
      },
      {
        "d": "2020-06-09 00:35",
        "v_126": "0.228"
      },
      {
        "d": "2020-06-09 00:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 00:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 01:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 02:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 03:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:30",
        "v_126": "0.055"
      },
      {
        "d": "2020-06-09 04:35",
        "v_126": "0.132"
      },
      {
        "d": "2020-06-09 04:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 04:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 05:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 06:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 07:50",
        "v_126": "0.048"
      },
      {
        "d": "2020-06-09 07:55",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-09 08:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:05",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 08:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 08:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 09:00",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-09 09:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 09:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 09:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 09:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 09:25",
        "v_126": "0.176"
      },
      {
        "d": "2020-06-09 09:30",
        "v_126": "0.132"
      },
      {
        "d": "2020-06-09 09:35",
        "v_126": "0.096"
      },
      {
        "d": "2020-06-09 09:40",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-09 09:45",
        "v_126": "0.120"
      },
      {
        "d": "2020-06-09 09:50",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-09 09:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:00",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 10:05",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:10",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 10:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:20",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 10:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:30",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 10:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 10:55",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:00",
        "v_126": "0.168"
      },
      {
        "d": "2020-06-09 11:05",
        "v_126": "0.048"
      },
      {
        "d": "2020-06-09 11:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:15",
        "v_126": "0.072"
      },
      {
        "d": "2020-06-09 11:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:25",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:35",
        "v_126": "0.024"
      },
      {
        "d": "2020-06-09 11:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 11:55",
        "v_126": "0.036"
      },
      {
        "d": "2020-06-09 12:00",
        "v_126": "0.168"
      },
      {
        "d": "2020-06-09 12:05",
        "v_126": "0.192"
      },
      {
        "d": "2020-06-09 12:10",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:15",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:20",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:25",
        "v_126": "0.012"
      },
      {
        "d": "2020-06-09 12:30",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:35",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:40",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:45",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:50",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 12:55",
        "v_126": "0.060"
      },
      {
        "d": "2020-06-09 13:00",
        "v_126": "0.000"
      },
      {
        "d": "2020-06-09 13:05",
        "v_126": "0.168"
      },
      {
        "d": "2020-06-09 13:10",
        "v_126": "0.033"
      },
      {
        "d": "2020-06-09 13:15",
        "v_126": "0.000"
      }
    ],
    "status": "OK",
    "title": "Graph day",
    "verbruik": "d.v_126*100"
  },
  "realrange": "day",
  "dataFilterCount": 24,
  "dataFilterUnit": "hours",
  "groupBy": false,
  "customRange": true,
  "customRangeName": "6u",
  "graphConfig": {
    "range": "day",
    "filter": "24 hours",
    "data": {
      "verbruik": "d.v_126*100"
    }
  },
  "keys": [
    "v"
  ],
  "ykeys": [
    "verbruik"
  ],
  "txtUnit": "Liter",
  "ylabels": [
    "Liter"
  ],
  "chartctx": "graphoutput_block_47",
  "filter": "24 hours",
  "_width": 420.656,
  "loadingTooltip": false
}
[code]
Attachments
WatergraphLine.PNG
WatergraphLine.PNG (78.42 KiB) Viewed 1580 times
WatergraphBar.PNG
WatergraphBar.PNG (81.84 KiB) Viewed 1580 times
Last edited by Jimster on Tuesday 09 June 2020 13:15, edited 2 times in total.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

Jimster wrote: Tuesday 09 June 2020 13:06 Output from the debug button:
Spoiler: show

Code: Select all

{
	"ActTime" : 1591700828,
	"AstrTwilightEnd" : "00:00",
	"AstrTwilightStart" : "00:00",
	"CivTwilightEnd" : "22:46",
	"CivTwilightStart" : "04:36",
	"DayLength" : "16:35",
	"NautTwilightEnd" : "23:59",
	"NautTwilightStart" : "03:22",
	"ServerTime" : "2020-06-09 13:07:08",
	"SunAtSouth" : "13:41",
	"Sunrise" : "05:23",
	"Sunset" : "21:58",
	"app_version" : "2020.2",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Counter" : "1416.612 m3",
			"CounterToday" : "227 Liter",
			"CustomImage" : 0,
			"Data" : "1416.612 m3",
			"Description" : "",
			"Favorite" : 0,
			"HardwareID" : 29,
			"HardwareName" : "Unknown?",
			"HardwareType" : "Unknown?",
			"HardwareTypeVal" : 0,
			"HaveTimeout" : false,
			"ID" : "140CE",
			"LastUpdate" : "2020-06-09 13:05:55",
			"Name" : "Waterverbruik",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "RFXMeter counter",
			"SwitchTypeVal" : 2,
			"Timers" : "false",
			"Type" : "RFXMeter",
			"TypeImg" : "counter",
			"Unit" : 1,
			"Used" : 1,
			"ValueQuantity" : "",
			"ValueUnits" : "",
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "126"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Thats not the debugButton. See here: https://www.domoticz.com/forum/viewtopi ... on#p237106
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Jimster »

clinkadink wrote: Tuesday 09 June 2020 13:12
Jimster wrote: Tuesday 09 June 2020 13:06 Output from the debug button:
Spoiler: show

Code: Select all

{
	"ActTime" : 1591700828,
	"AstrTwilightEnd" : "00:00",
	"AstrTwilightStart" : "00:00",
	"CivTwilightEnd" : "22:46",
	"CivTwilightStart" : "04:36",
	"DayLength" : "16:35",
	"NautTwilightEnd" : "23:59",
	"NautTwilightStart" : "03:22",
	"ServerTime" : "2020-06-09 13:07:08",
	"SunAtSouth" : "13:41",
	"Sunrise" : "05:23",
	"Sunset" : "21:58",
	"app_version" : "2020.2",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Counter" : "1416.612 m3",
			"CounterToday" : "227 Liter",
			"CustomImage" : 0,
			"Data" : "1416.612 m3",
			"Description" : "",
			"Favorite" : 0,
			"HardwareID" : 29,
			"HardwareName" : "Unknown?",
			"HardwareType" : "Unknown?",
			"HardwareTypeVal" : 0,
			"HaveTimeout" : false,
			"ID" : "140CE",
			"LastUpdate" : "2020-06-09 13:05:55",
			"Name" : "Waterverbruik",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "RFXMeter counter",
			"SwitchTypeVal" : 2,
			"Timers" : "false",
			"Type" : "RFXMeter",
			"TypeImg" : "counter",
			"Unit" : 1,
			"Used" : 1,
			"ValueQuantity" : "",
			"ValueUnits" : "",
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "126"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Thats not the debugButton. See here: https://www.domoticz.com/forum/viewtopi ... on#p237106
Something went wrong with copy-paste. Changed it now.
Droid
Posts: 19
Joined: Saturday 30 May 2020 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Droid »

How can I change the text colors of the x and y axis?
Im working on a light theme, but I can't find that..
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

Jimster wrote: Tuesday 09 June 2020 13:06 The 24h view doesn't show the bars, the tooltip shows a value. But when I change the graph to line, the line is visible.
The 6h view also behaves strange. The bars are visible, but when a new day starts, the bars dissapears. After 6AM in the morning, they appear again.
Hi Jimster, apologies for the delay in responding - things have been manic at work. I have created a dummy water meter (RFX meter) and added your block. I cannot replicate this. The graph correctly displays bars for each range.

Image
"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: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

Droid wrote: Saturday 20 June 2020 8:52 How can I change the text colors of the x and y axis?
Im working on a light theme, but I can't find that..
Do you mean the axis labels or ticks? I am guessing both. Currently there is no method to change these. They are drawn as part of the graph canvas. I will see what I can do to provide this capability.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Droid
Posts: 19
Joined: Saturday 30 May 2020 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Droid »

clinkadink wrote: Saturday 20 June 2020 10:20
Droid wrote: Saturday 20 June 2020 8:52 How can I change the text colors of the x and y axis?
Im working on a light theme, but I can't find that..
Do you mean the axis labels or ticks? I am guessing both. Currently there is no method to change these. They are drawn as part of the graph canvas. I will see what I can do to provide this capability.
Yeah both... I can pratically change all colors, except those.
On a white background, white text doesn't show :)
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

Droid wrote: Saturday 20 June 2020 10:35 Yeah both... I can pratically change all colors, except those.
On a white background, white text doesn't show :)
This is now been added to the latest beta.

Code: Select all

fontColor: 'black',    // default is white
Let me know how you get on ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Jimster »

clinkadink wrote: Saturday 20 June 2020 9:37
Jimster wrote: Tuesday 09 June 2020 13:06 The 24h view doesn't show the bars, the tooltip shows a value. But when I change the graph to line, the line is visible.
The 6h view also behaves strange. The bars are visible, but when a new day starts, the bars dissapears. After 6AM in the morning, they appear again.
Hi Jimster, apologies for the delay in responding - things have been manic at work. I have created a dummy water meter (RFX meter) and added your block. I cannot replicate this. The graph correctly displays bars for each range.

Image
Hi clickadink, as far as I remember, it worked the first day. Can you check if it still works for you the next days?
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by clinkadink »

Jimster wrote: Sunday 21 June 2020 13:01 Hi clickadink, as far as I remember, it worked the first day. Can you check if it still works for you the next days?
Yes, it still shows the same graph today, same as above. But don't forget, I am using a dummy device, with no data.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Droid
Posts: 19
Joined: Saturday 30 May 2020 16:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Droid »

clinkadink wrote: Saturday 20 June 2020 13:01
Droid wrote: Saturday 20 June 2020 10:35 Yeah both... I can pratically change all colors, except those.
On a white background, white text doesn't show :)
This is now been added to the latest beta.

Code: Select all

fontColor: 'black',    // default is white
Let me know how you get on ;)
Thanks, I haven't been able to test it yet.
I first got my Dashboards set up... now I'll probably start on my light theme
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by webrazor »

I updated dashticz to version 3.5 but now all the graph dont show any bar/line anymore:

The standard graph works when i click on the button:
Image
But the custom graph is empty, it show total in left top corner:
Image

Here is the code for graph:

Code: Select all

blocks['graph_5'] = {
	height:	['210px'],
	graph: ['bar','bar'],
    custom : {
        "last day": {
            range: 'day',
            filter: '24 hours',
            data: {
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        },
        "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                usage: 'd.v+d.v2',
                generation: '-d.r1-d.r2'
            }
        }
    },
    legend: false,
    datasetColors:['white','white']
}
Post Reply

Who is online

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