From 951a09e7f5c3716b04a14cded6dd262d70b6ea02 Mon Sep 17 00:00:00 2001 From: mantaohuang Date: Tue, 28 Jul 2020 11:53:40 -0400 Subject: [PATCH] change to chartjs --- plot_gen.py | 2 +- tabler/index.html | 206 ++++++++++++++++++++++++++-------------------- 2 files changed, 117 insertions(+), 91 deletions(-) diff --git a/plot_gen.py b/plot_gen.py index 99a5abb..19531ff 100644 --- a/plot_gen.py +++ b/plot_gen.py @@ -35,7 +35,7 @@ class TimeSeriesAccumulator: return result def get_ts(self): - return [datetime.utcfromtimestamp(self.start_timestamp+(i+1)*self.bin_time) for i in range(self.n_bins)] + return [datetime.utcfromtimestamp(int(self.start_timestamp+(i+1)*self.bin_time)) for i in range(self.n_bins)] if __name__ == "__main__": diff --git a/tabler/index.html b/tabler/index.html index c5a593b..df05d8e 100644 --- a/tabler/index.html +++ b/tabler/index.html @@ -299,7 +299,7 @@ -
+ @@ -426,100 +426,126 @@ + @@ -602,4 +628,4 @@ load_stat(); - + \ No newline at end of file