Daily sum in bar chart is wrong
조회 수: 1 (최근 30일)
이전 댓글 표시
I am collecting the rainfall hourly. If i want to have a daily sum, the sum is not ok.
If i want to sum up 0.28+0.56+0.56 the bar chart displays 0.28.
Does somebody has an idea?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682773/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682778/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682783/image.png)
댓글 수: 5
채택된 답변
Christopher Stapels
2021년 7월 13일
I tried this in one of my channels and it seems to work fine. I wonder if there is something different about your data. Can you share the data used to geenrate those plots? Here is the data I used:
myTimes Var1
____________________ ____
11-Jul-2021 08:38:10 0.28
11-Jul-2021 09:38:10 0.56
11-Jul-2021 10:38:10 0.56
13-Jul-2021 10:38:10 0.28
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/683418/image.png)
댓글 수: 6
Christopher Stapels
2022년 7월 20일
Thanks. Everytime we review precedence issues for parameters (timezone versus average, etc), we come up with edge cases and opposing scenarios. Ill submit it to our tracking system for review however. We appreciate your vigilance on the issue.
추가 답변 (1개)
Vinod
2021년 7월 13일
My suspicion is that the field has a bunch of 'NaN's in them. Can you download the data for the channel from th "Import/Export" tab of the channel and confirm there are no NaN's or blank slots in the data?
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!