from bokeh.charts import TimeSeries, show, output_file
d ={}
with open(“sar.txt”) as f:
for line in f:
items = line.split()
if items[0] == “datetime”:
v = items[1:]
values = [(“2016-09-29 %s” % i).replace(":", “-”) for i in v]
d[“datetime”] = values
else:
v = items[1:]
values = [float(i) for i in v]
d[items[0]] = values
tsline = TimeSeries(d, x=“datetime”, y=“181-rxpck/s”, title=“Timeseries”, ylabel=‘Network Throughout’, plot_width=1000)
output_file(“timeseries.html”)
show(tsline)
``
Bokeh Version: 0.12.2
Due to many data require to draw, the x axis label collapse. Can bokeh only draw every 10 second date, not all of the date ?
from bokeh.charts import TimeSeries, show, output_file
d ={}
with open(“sar.txt”) as f:
for line in f:
items = line.split()
if items[0] == “datetime”:
v = items[1:]
values = [(“2016-09-29 %s” % i).replace(“:”, “-”) for i in v]
d[“datetime”] = values
else:
v = items[1:]
values = [float(i) for i in v]
d[items[0]] = values
tsline = TimeSeries(d, x=“datetime”, y=“181-rxpck/s”, title=“Timeseries”, ylabel=‘Network Throughout’, plot_width=1000)
output_file(“timeseries.html”)
show(tsline)
``
Bokeh Version: 0.12.2
Due to many data require to draw, the x axis label collapse. Can bokeh only draw every 10 second date, not all of the date ?
By way of completeness, another option is to use the .line glyph method from the bokeh.plotting API, with a "datetime" axist format. This will renderer the axis using a real datetime tick formatter, instead of creating a set of categorical labels like bokeh.charts.TimeSeries seems to do.
The bokeh.charts API could currently use some improvements. Unfortunately the core team bandwidth is extremely limited, and there are other very high priorities in front. New contributors to work on charts could help speed up those improvements.
Please also note: the bokeh.charts API is almost certainly going to move into a separate package of its own, and out of the core library, before the Bokeh 1.0 release.
from bokeh.charts import TimeSeries, show, output_file
d ={}
with open("sar.txt") as f:
for line in f:
items = line.split()
if items[0] == "datetime":
v = items[1:]
values = [("2016-09-29 %s" % i).replace(":", "-") for i in v]
d["datetime"] = values
else:
v = items[1:]
values = [float(i) for i in v]
d[items[0]] = values
tsline = TimeSeries(d, x="datetime", y="181-rxpck/s", title="Timeseries", ylabel='Network Throughout',plot_width=1000)
output_file("timeseries.html")
show(tsline)
Bokeh Version: 0.12.2
Due to many data require to draw, the x axis label collapse. Can bokeh only draw every 10 second date, not all of the date ?