code clean: follow pep8

This commit is contained in:
chenjiandongx 2017-08-31 09:45:16 +08:00
parent 81c53a5cf3
commit 5fadbed20b
4 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@ import json
import uuid
import random
import datetime
from pprint import pprint
from pyecharts.option import get_all_options
from pyecharts import template
from pyecharts import utils
@ -319,7 +319,7 @@ class Base(object):
v_lst.append(v)
return k_lst, v_lst
def _config_components(self,is_visualmap=False,
def _config_components(self, is_visualmap=False,
is_datazoom_show=False,
is_more_utils=False,
**kwargs):

View File

@ -5,6 +5,7 @@ from __future__ import unicode_literals
import os
import json
import codecs
from pyecharts.utils import get_resource_dir

View File

@ -236,7 +236,7 @@ def test_geo():
geo.render()
# geo_guangdong_province
data =[
data = [
('汕头市', 50), ('汕尾市', 60), ('揭阳市', 35), ('阳江市', 44), ('肇庆市', 72)
]
geo = Geo("广东城市空气质量", "data from pm2.5", title_color="#fff", title_pos="center",

View File

@ -100,10 +100,9 @@ def test_more():
attr = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
line = Line("折线图示例")
line.add("最高气温", attr, [11, 11, 15, 13, 12, 13, 10],
mark_point=["max", "min"],
mark_line=["average"])
line.add("最低气温", attr, [1, -2, 2, 5, 3, 2, 0], mark_point=["max", "min"],
mark_line=["average"])
mark_point=["max", "min"], mark_line=["average"])
line.add("最低气温", attr, [1, -2, 2, 5, 3, 2, 0],
mark_point=["max", "min"], mark_line=["average"])
page.add(line)
# pie