changxin commited on
Commit
98072ca
·
1 Parent(s): e87fb60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -5,7 +5,8 @@ import matplotlib.pyplot as plt,mpld3
5
  import seaborn as sns
6
  import bokeh.plotting as bk
7
  from bokeh.embed import json_item
8
- from highcharts import Highchart
 
9
  from pyecharts.charts import Bar
10
  import cufflinks as cf
11
  import plotly.offline
@@ -46,8 +47,9 @@ def pyecharts1():
46
  bar = Bar()
47
  bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
48
  bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
 
49
  bar.render('test.html')
50
- return 'test.html',bar
51
  def cff():
52
 
53
  df=pd.DataFrame([[0.2,0.4,0.6],[0.4,0.3,0.4],[0.4,0.5,0.2],[0.5,0.4,0.4]],columns=['a','b','c'])
 
5
  import seaborn as sns
6
  import bokeh.plotting as bk
7
  from bokeh.embed import json_item
8
+ from highcharts import Highchart
9
+ import pyecharts
10
  from pyecharts.charts import Bar
11
  import cufflinks as cf
12
  import plotly.offline
 
47
  bar = Bar()
48
  bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
49
  bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
50
+ tt=pyecharts.Base.dump_options()
51
  bar.render('test.html')
52
+ return 'test.html',tt
53
  def cff():
54
 
55
  df=pd.DataFrame([[0.2,0.4,0.6],[0.4,0.3,0.4],[0.4,0.5,0.2],[0.5,0.4,0.4]],columns=['a','b','c'])