chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Data Explorer scales graph incorrectly

Open juperala opened this issue 9 years ago • 4 comments

Version: Chronograf 1.1.0-beta2 (Windows)

In Data Explorer creating a graph for showing binary data (values either 0 or 1) scales incorrectly. When data has only few concecutive 0 values in the given date range, the graph is scaled showing only the 1 values (see examples). This happens especially if visualization is configured to show longer time periods (e.g. Last 24 hours or above), while shorter time periods may show data correctly.

juperala avatar Dec 21 '16 13:12 juperala

Hi @juperala , thanks for writing in! Your examples didn't seem to come through. Would you be able to post 'em?

goller avatar Dec 21 '16 23:12 goller

Hi,

Yes, here is the example graph demonstrating the issue:

Graph showing past 6 hours scales the y-axis correctly from 0 to 1:
visualization_6h

Exactly same graph for past 24 hours scales the y-axis incorrectly and shows only a straight line (when value=1) and the 0 values are not visible at the graph at all. visualization_24h

juperala avatar Dec 22 '16 06:12 juperala

I have set up a test server to reproduce this.

nhaugo avatar Jan 04 '17 01:01 nhaugo

Thanks for reporting the issue! I'm fixing this in https://github.com/influxdata/chronograf/issues/725. Once that gets merged in you should be good to go @juperala

121watts avatar Jan 04 '17 23:01 121watts