from pyecharts.charts import ThemeRiver
import pyecharts.options as opts
import pandas as pd
# 导入数据
data = pd.read_csv('E:\python\sale_amount.csv',index_col='date')
series = data.columns.values

data_list = []
for se in series:
    for x,y in zip(data[se].index,data[se].values):
        data_list.append([x,int(y),se])




# 绘制，设置类型为时间
wc = ThemeRiver(init_opts=opts.InitOpts(height='600px'))\
    .add(series_name=series, data=data_list, singleaxis_opts=opts.SingleAxisOpts(type_='time'))\
    .render()

9d88563f4b9a9a17413fad19672ed151b19d4e17
<mask token>

<mask token>
for se in series:
    for x, y in zip(data[se].index, data[se].values):
        data_list.append([x, int(y), se])
<mask token>

<mask token>
data = pd.read_csv('E:\\python\\sale_amount.csv', index_col='date')
series = data.columns.values
data_list = []
for se in series:
    for x, y in zip(data[se].index, data[se].values):
        data_list.append([x, int(y), se])
wc = ThemeRiver(init_opts=opts.InitOpts(height='600px')).add(series_name=
    series, data=data_list, singleaxis_opts=opts.SingleAxisOpts(type_='time')
    ).render()

from pyecharts.charts import ThemeRiver
import pyecharts.options as opts
import pandas as pd
data = pd.read_csv('E:\\python\\sale_amount.csv', index_col='date')
series = data.columns.values
data_list = []
for se in series:
    for x, y in zip(data[se].index, data[se].values):
        data_list.append([x, int(y), se])
wc = ThemeRiver(init_opts=opts.InitOpts(height='600px')).add(series_name=
    series, data=data_list, singleaxis_opts=opts.SingleAxisOpts(type_='time')
    ).render()

from pyecharts.charts import ThemeRiver
import pyecharts.options as opts
import pandas as pd
# 导入数据
data = pd.read_csv('E:\python\sale_amount.csv',index_col='date')
series = data.columns.values

data_list = []
for se in series:
    for x,y in zip(data[se].index,data[se].values):
        data_list.append([x,int(y),se])




# 绘制，设置类型为时间
wc = ThemeRiver(init_opts=opts.InitOpts(height='600px'))\
    .add(series_name=series, data=data_list, singleaxis_opts=opts.SingleAxisOpts(type_='time'))\
    .render()
