Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed graph look. [ref #107442248] #248

Merged
merged 4 commits into from
Nov 20, 2015
Merged

Changed graph look. [ref #107442248] #248

merged 4 commits into from
Nov 20, 2015

Conversation

zafrani
Copy link
Contributor

@zafrani zafrani commented Nov 19, 2015

Card: https://www.pivotaltracker.com/story/show/107442248

Spoke to @keussen and we decided to change the original design. Instead of using dotted line where data isn't captured, instead lower the entire graph so the line representing no data is sitting at the bottom of the screen. Also use the placeholder text value for those locations when the user touches the graph.

@@ -348,7 +348,7 @@ public void onGraphHighlightBegin() {
@Override
public void onGraphValueHighlighted(int section, int position) {
final SensorGraphSample instant = getSection(section).get(position);
if (instant.isValuePlaceholder()) {
if (instant.isValuePlaceholder() || instant.getValue() == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 does not indicate a missing value – this would produce an incorrect reading on a room with 0 lux or 0 dB


returning the missing value sentinel (-1) is currently feature gated in the backend

@decarbonization
Copy link
Contributor

multiplying the minY value will probably present problems later on. since we aren't drawing any headers and footers anymore, you can remove the implementation of GraphView.HeaderFooterProvider from SensorDataSource, and then call setWantsHeaders(false) and setWantsFooters(false) on SensorHistoryFragment#graphView. this should give you the same result

zafrani added a commit that referenced this pull request Nov 20, 2015
Changed graph look. [ref #107442248]
@zafrani zafrani merged commit a42ef36 into develop Nov 20, 2015
@zafrani zafrani deleted the dz/graphs branch November 20, 2015 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants