Thingspeak: problem with a bar graph | MATLAB IoT Analytics | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Thingspeak: problem with a bar graph
No permission to create posts
March 21, 2020
4:59 pm
Avatar
lesept
New Member
Members
Forum Posts: 1
Member Since:
March 21, 2020
sp_UserOfflineSmall Offline

Hi
I'm trying to plot some measured values on bar graphs, but it seems that only a few values are plotted, not all of them.
Here is the code:

readChannelID = ***;
fieldID = 1;
readAPIkey = '****';
%% Read data %%
month = 3;
day = 21;
range = [datetime(2020,month,day,0,0,0),datetime(2020,month,day,23,59,59)];
[data,time] = thingSpeakRead(readChannelID,'Fields',1,'DateRange',range,'ReadKey', readAPIkey);
%% Vizualize data
hours = datetime(0,0,0,hour(time)+1,minute(time),second(time));
hours
data
bar (hours,data,'r');

The graph is plotted but the maximum plotted value is around 25, and the maximum value I get when displaying the value lists is 58.
The last values displayed for data are:
15
13
12
12
12
17
12
54
12
12
17
6
21
12
14
22
15
12
25
6
6
5
48
16
5
18
6
13
15
18
No signof the 48, the 25, etc.

It seems only one value out of 5 is plotted. What did I miss?
Thanks for your help

téléchargement.pngImage Enlarger

sp_PlupAttachments Attachments
August 6, 2020
10:38 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 861
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

I'd try MATLAB answers for this one.

FYI, MATLAB answers is the preferred location for ThingSpeak Community support.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

anis, 43994554AKS, suda, marisol, qkpham, SANGAMNATH B

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457