In [1]:
#-*-coding:utf-8-*-
# coding: UTF-8
from echarts import Echart, Legend, Bar, Axis

chart = Echart('GDP', 'This is a fake chart')
chart.use(Bar('China', [2, 3, 4, 5]))
chart.use(Legend(['GDP']))
chart.use(Axis('category', 'bottom', data=['Nov', 'Dec', 'Jan', 'Feb']))
chart.plot()


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-3032153d67d5> in <module>
      1 #-*-coding:utf-8-*-
      2 # coding: UTF-8
----> 3 from echarts import Echart, Legend, Bar, Axis
      4 
      5 chart = Echart('GDP', 'This is a fake chart')

ModuleNotFoundError: No module named 'echarts'