Commit a6e78433 authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Protect against Error with no Chart Values

parent 577cb371
......@@ -50,7 +50,8 @@ class TimeSeries(basechart.BaseChart):
times = ser.index
# Highcharts uses milliseconds for timestamps, and convert to float because weirdly, integers have
# problems with JSON serialization.
times = times * 1000.0
if len(times):
times = times * 1000.0
# Create series data, each item being an [ts, val] pair.
# The 'yAxis' property indicates the id of the Y axis where the data should be plotted.
# Our convention is to use the unit label for the axis as the id.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment