Chart does not display values between 1 and -1 | General | 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
Chart does not display values between 1 and -1
No permission to create posts
January 12, 2018
10:58 pm
Avatar
chriscokid
New Member
Members
Forum Posts: 3
Member Since:
January 12, 2018
sp_UserOfflineSmall Offline

The chart does not seem to display values between 1 and -1, except for 0.

I upload data using curl once per minute, and when the value is, e.g. .5 or -.3 nothing is displayed in the chart. I know the data points are being stored on the server because I can see the data by using the data export function:

2018-01-13 01:33:02 UTC,570587,.1

2018-01-13 01:34:02 UTC,570588,.2

2018-01-13 01:35:02 UTC,570589,.3

2018-01-13 01:36:02 UTC,570590,0

2018-01-13 01:37:02 UTC,570591,0

2018-01-13 01:38:02 UTC,570592,0

2018-01-13 01:39:02 UTC,570593,-.1

2018-01-13 01:40:02 UTC,570594,-.1

2018-01-13 01:54:02 UTC,570608,-.2

2018-01-13 01:55:01 UTC,570609,-.3

None of these values are displayed on the chart, except the 0s. As soon as the value is 1.0 or greater, or -1.0 or less, it is displayed again.

Chris

January 15, 2018
1:44 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 200
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

I think it may have to do with how the data is being interpreted. What if instead of ".1", ".2", etc. it is sent to the server as "0.1", "0.2", etc? 

January 15, 2018
10:47 pm
Avatar
chriscokid
New Member
Members
Forum Posts: 3
Member Since:
January 12, 2018
sp_UserOfflineSmall Offline

Yes, that will probably work, but I have to add some extra code to format the numbers since 'bc' doesn't have any way to force leading zeros.

In any case, this should be handled as a bug in your parser, since that is a perfectly valid way of specifying a number.

Chris

January 19, 2018
10:29 pm
Avatar
chriscokid
New Member
Members
Forum Posts: 3
Member Since:
January 12, 2018
sp_UserOfflineSmall Offline

I can confirm that adding the leading 0, i.e. 0.3 or -0.4, does work and displays properly.

Chris

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457