[Release] Quick Chart - Chart your data, quickly and easily

@bptworld Still getting this whether I choose chart or charti. But the device shows the attribute

image

But when you click iframe handler I'm not sure if this is expected behavior

I had the same issue. Tried changing the devices I am collecting data (Temp in my case) and it seems like there are some devices that when you add them to the app the virtual device will collect the data and include a chart in the device page but will not show on the dashboard.
Could not yet find the logic behind it :man_shrugging:

1 Like

In my case it's iotawatt out putting power which is just a number for the attribute

IE:
image

Edit: Just rebuilt the child with Temp from a sensor and same thing.

When I’ve seen something similar, it was due to having a script tag with a debugging alert() in the HTML that was generated.

Any errors in the log?

When I use 'file manager' for a line chart, when I click on generate chart I get this.


A blank Page. The only way out is to click on the apps menu on the left.
If I then click on the child app in the apps page it takes me back to the screen shown above.
I then see this in the logs.

Not that I'm seeing. Since setting to temp the dash Icon is working...

Setting it back to my iotawatt now shows properly... Strange. I'll keep monitoring. I have it set for every 5 mins. Also as you can see when in the iframe, the bottom portion that contains the DAY is cut off.

Ignore the title

image

image

As you can see when I open the image in a new tab it shows the day

1 Like

My chart is working pretty good mostly! Great app. The only odd thing I’m seeing at the moment is the days of the week are swapped in the chart. Thursday, Sunday Saturday, Friday


1 Like

Yup, I mentioned sorting issues in a previous post. Work in progress. :smile:

1 Like

Hi @bptworld not sure if you missed this post that shows an error so I'm doing a gentle nudge.
I do appreciate all you do for us mere mortals and I'm only mentioning this again just in case you did miss the post.
If you did see it sorry for the prompt.

2 Likes

New Bundle...

0.1.3 - 07/25/22 - Added more logging, working on sorting - lots more to do!

1 Like

Ok back to this. Shows in the device but not the dashboard like before.

image

1 Like

Personally I like the background, so I think a chart might detract from the aesthetic you (Lucas Arts I expect) have created....

3 Likes

Nice, days are in order now! Maybe just nice to swap the order of the sorting for next beta version though :slight_smile:

1 Like

I know you know what you are doing but bear with me...

To Display on Dashboard:

  • Close ALL dashboards -- MOST IMPORTANT STEP --
  • Add the 'Device' to the Hubitat Dashboard app
  • Open Dashboard
  • Click '+'
  • Select 'Device', 'Attribute', 'chart'

Also noticed on your device page, you're not running the latest version! You should have a 'chartLength' attribute. Remember, if this number is above 1024 ... it won't show on a dashboard.

Screenshot 2022-07-25 1.09.58 PM

1 Like

Can you please explain how is the chartLength calculated?

Example of how the chart is built:

https://quickchart.io/chart?f=png&bkg=$bkgrdColor&c={type:'${gType}',data:{labels:${theLabels},datasets:[{label:'${theAtt}',data:${theData}},{label:'${theAtt}',data:${theData}}]},options: {title: {display: true,text: '${theChartTitle}'}}}


Then the characters are counted:

theCLength = buildChart.length()

Hi @bptworld,
I can not figure this out.
When collecting data from 3 devices to create a chart I get a chart length of 1889.
image

No changing anything but adding one additional device I now get a chart size of 1405:
image

I must be missing something

It looks like it's using a lot less data points per device

It sure looks like it. But why?
The added device is a contact sensor with temp capability and the other 3 are: 2 HE hubs using @thebearmay HubInfo driver polling data every 10 minutes and one virtual temp device using node red to collect data from my Raspberry PI once every 30 minutes.
What determines the X axis points showing?