Data with decimals not scaling properly in channel stat graphs

조회 수: 2 (최근 30일)
BRIAN MINOR
BRIAN MINOR 2020년 11월 1일
댓글: Christopher Stapels 2020년 11월 3일
My data is posting to ThingSpeak without issue, but I have two fields that involve decimals. The plots on those charts on the channel stats page show up on the X axis. I thought they were being plotted as zeros because of formatting issues, but it turns out it's a scaling issue. If I manually adjust the min and max on the y axis to scale, the data plots properly. What would be causing this scaling issue if the data is being recognized correctly? My data that does not involve decimals has always been properly centered.
Edit: I should add that this is happening when I'm using a ThingSpeak library. It wasn't happening when I was sending data through AT commands on my ESP8266. The ThingSpeak was transmitting the data more reliably, though.
  댓글 수: 2
Christopher Stapels
Christopher Stapels 2020년 11월 2일
The library does make sure all data gets formatted as strings before sending. Usually ThingSpeak is able to convert the strings to the appropriate format for plotting. Perhaps something is being padded into the value, such as a space? You can look at the data using the "export recent data" button on the channel view.
BRIAN MINOR
BRIAN MINOR 2020년 11월 3일
It turned out it just does that until there are two different values. Since I was in a testing phase I was just feeding at the same value over and over again. Once the data started varying a bit the chart centered and scaled properly. Again, it was only doing this when there was a decimal involved.

댓글을 달려면 로그인하십시오.

채택된 답변

BRIAN MINOR
BRIAN MINOR 2020년 11월 3일
It turned out it just does that until there are two different values. Since I was in a testing phase I was just feeding at the same value over and over again. Once the data started varying a bit the chart centered and scaled properly. Again, it was only doing this when there was a decimal involved.
  댓글 수: 1
Christopher Stapels
Christopher Stapels 2020년 11월 3일
Thanks for letting us know you got it working! Autoscaling with not a lot of data can lead to strange views.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Visualize Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by