Kapacitor rule graph isn't displaying the threshold value
In previous versions, I was able to see the threshold value on the graph on the alert creation page. Now, the graph hops around when I set a threshold and I can't see the value on the graph.
(I think I've seen this before. Maybe related to https://github.com/influxdata/chronograf/pull/926?)
Repro steps
On the rules page:
Step 1: Select a Time Series
I used:
SELECT "usage_idle" FROM "telegraf"."autogen"."cpu" WHERE time > now() - 15m
Step 2: Define a simple threshold rule
I did:

Step 3: Look at the graph and feel a deep emptiness

@rkuchan I'm not able to reproduce this on master.
Looks like this might only be an issue on chrome.
Might be related to https://github.com/influxdata/chronograf/pull/882 also
@nhaugo @rkuchan This is what I get after following the above reproduction steps on master:

Ok, found it. The graph will look fine if you're creating or updating a RuleAlert, but the issue seems to appear after refreshing the page, and only if the defined threshold is far lower or far greater than the nominal range of values. I believe that Dygraphs is correctly drawing the overlay, but is not recalculating the range of the y-axis to show it.
Additionally, after reloading the page and focusing the threshold input, simply moving your text cursor left and right will force the graph to recalculate and make the overlay appear. Fixing this is simple, and I have a PR incoming.