bug fix in opaque
This commit is contained in:
@@ -59,6 +59,7 @@ import datetime
|
||||
import math
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import holoviews as hv
|
||||
from pytz import timezone as tz,utc
|
||||
from django.utils.timezone import get_current_timezone
|
||||
from django.utils.timezone import activate
|
||||
@@ -246,13 +247,6 @@ def interactive_boxchart(datadf,fieldname,extratitle=''):
|
||||
|
||||
return script,div
|
||||
|
||||
try:
|
||||
import holoviews as hv
|
||||
hv.extension('bokeh')
|
||||
renderer = hv.renderer('bokeh')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
def interactive_activitychart(workouts,startdate,enddate,stack='type'):
|
||||
|
||||
dates = []
|
||||
@@ -326,6 +320,7 @@ def interactive_activitychart(workouts,startdate,enddate,stack='type'):
|
||||
|
||||
df.sort_values('date_sorting',inplace=True)
|
||||
|
||||
df.to_csv('~/s/data.csv')
|
||||
|
||||
p = hv.Bars(df,values='duration',
|
||||
# label = CatAttr(columns=['date'], sort=False),
|
||||
|
||||
Reference in New Issue
Block a user