29 Commits

Author SHA1 Message Date
chenjiandongx
050797d9ad Add: add Collector decorator" 2019-03-25 14:13:19 +08:00
陈键冬
362883962f Add: add examples 2019-03-25 00:18:31 +08:00
陈键冬
dd281c98f5 Update: 完善示例 2019-03-24 17:22:33 +08:00
chenjiandongx
af9ac2e6c4 Refactor: daily refactor 2019-03-21 10:41:04 +08:00
陈键冬
217fd3caec Refactor: 日常重构 2019-03-17 12:39:57 +08:00
jaska
1c437f6a66 🔥 as previously promised, 0.6.0 will have the proper place to en… (#849)
* 🔥 as previously promised, 0.6.0 will have the proper place to encode NULL

* 🎨 address review comments
2018-11-22 08:04:59 +00:00
陈键冬
907dca2d9f Remove: 移除 is_fill 参数 (#763)
* Remove: 移除 is_fill 参数

* Docs: 更新 changelog

* Update: update isort configure file

* Format: format code

* Format: 统一 import 写法
2018-09-13 00:03:07 +08:00
jaska
658f3b640d Support NULL inside the options of Grid, Overlay and Timeline (#740)
* 🐛 initial fix for NULL in custom charts. fix #738

* 🔬 complete tests for grid, overlay and timeline. #738

* 💄 bump version number

*  fixing pep8 warnings
2018-09-07 11:48:56 +08:00
jaska
61302cb743 To be able to set a key to null in Echarts options (#724)
*  allow developer to signal a configuration is not set. fix #703

* 📚 update usage and 🔬 provide one integration test

* 📚 update change log

* 🎨 update version number

* 🎨 🔨 address review feedback
2018-09-04 09:50:26 +08:00
陈键冬
3e7e2bfc77 Lias (#722)
* Add: 新增 lias 工具格式化 imports

* Update: 细节修正

* Fix: fix #721

* Update: var reused

* Format: 格式化导包顺序

* Update: modules import order: python builtin imports on top, 3rd parties libraries in the middle, package's own libraries in the bottom
2018-09-01 16:07:00 +08:00
jaska
57e9f5190a Chain method update + black 18.6b4 (#688)
* 📚 update chain method calling and 🎨 appy latest black magic

* 🔨 use black 18.4a4

* 📚 update documentation

* 📚 update English docs

* 🎨 use line length 80 for source codes

* 🎨 use line length 79 for source codes as flake8 likes it

* 🎨 minor update

* 🎨 use black 18.6b4

* Patch: 细节修正

* Add: 使用 format_code 格式化项目代码

* Update: 文档细节更新

* Docs: faq update
2018-08-23 14:07:15 +08:00
jaska
6568ddbbbf Provide pyecharts with 138,398 cities of the world with a population of at least 1000 inhabitants (#663)
*  OPEN / CLOSE principle - open for extension but closed for modification. Allow the extension of city coordinates so that echarts-cities-pypkg can be installed, hence 138,398 city coordinations is added covering all countries in the world

* 🐛 what if no country data is returned

* 🔥 remove lazy object test

* 🎨 last resort, have to introduce country as a parameter to geo.add() function. no way to search for the coordinates without the country name.

* 📚 documentation update

* 📚 fix typos and add missing docstrings

* 🔬 more unit tests

* 💚 make unit test pass

* 🐛 without unicode_literals but with utf-8, all Chinese strings are utf-8 encoded, hence requires decoding.

* 🎨 🔨 code refacotring and 📚 update documentation

* 🎨 finalized version

* 🔥 remove un-used function

* 🔨 change function parameter name: map_country -> coordinate_country

* 🔨 country -> region

* 🔨 country -> region

* 🚜 rename db file

* 🔨 whitening with black

* 📖 update dataset

* 📖 update data set country
2018-08-11 21:42:16 +08:00
jaska
efad423d90 Fix 0.5.3 where empty dict means a lot for echarts (#558)
* 🐛 keep the empty dictionary though it looks useless but charts needs them. fix #555

* 👕 keep empty array too. update 📖

* 🎨 minor tweaks on the source code

* Update: pink test folder

* Update: changelog update
2018-05-15 07:25:38 +01:00
jaska
437ae7d7f6 True theme (#546)
* 🐛 fix theme color problem for themes other than dark, #544

* 🔬 test remove_key_with_none_value and whitening

* 📚 update docs and pump version

* Update json_serializable.py

* Update __init__.py

* 💚 fix unit test failures

* 🔥 get rid of dev code

* 💚 pass all unit tests

* 👕 use python 2 to generate the fixtures

* 🔥 remove empty dictionary that resulted from cleaning

* 🔬 more test cases. 👕 whitening

* 💚 ignore basestring please, flake8

* 🔨 code refactor test

* 🔨 address review feedbacks

* 💄 change single quote

* Update: docs update

* Update: img link update

* Update: docs update
2018-05-10 20:57:32 +08:00
陈键冬
8f16369400 Charts docs update and pink everything (#536)
* Update: docs update

* Update: 统一注释文档风格

* Update: pink echarts folder

* Update: pink charts folder

* Update: pink custom folder

* Update: pink pyecharts and dataset folder

* Update: pink test folder

* Update: pink utils folder

* Update: micro docs update for theme

* Fix: fixed broken test
2018-05-04 22:37:27 +08:00
jaska
d61f715566 oop options and doc update (#498)
* 格式化 setup.py

* 📚 update documentation

* 🔬 unit test options

* Update test_options.py

* 💚 update test case

* 🔨 getting oop options

* 🚜 relocate option.py, events.py, style.py to echarts

* 💚 make unit tests pass

* 🎨 fix remain bugs

* 💚 last bug fix

* 🐛 fix #493, pip 10.0.x compactibility issue

* 🎨 more pythonic code

* 🐛 fix inheritance

* 👕 whitening

* 🚜 rename city coordinates.json

* 🚜 update json serializable interface

* 🔨 **kwargs comes back

* Remove: 移除重复配置项
2018-04-25 17:13:00 +08:00
kinegratii
7491c42379 Datasets lazy load (#482)
* Move coordinate data to local data files.

* Rename coordinates data file

* Refactor code

* Fix

* Format code

* Refactor as utils package

* Fix Empty value for lazy
2018-04-09 18:18:21 +01:00
jaska
26840eb9d3 code refactoring all python codes using https://github.com/kennethreitz/white (#472)
* 🔨 code refactoring using https://github.com/kennethreitz/white

* 🔨 code refactoring the test code using https://github.com/kennethreitz/white
2018-04-02 16:00:35 +08:00
jaska
c11efc95ca As js functions are allowed for echarts options, python functions are allowed in pyecharts options too (#468)
*  initial prototype to pass on python functions into echarts options

*  enable more function based label formatters and 💚 make unit test pass

* 💚 make travis happy

* 💚 install pyecharts-javascripthon on appveyor

* 🔬 test javascript functions

* 🎨 tuning ci system

* 📚 update documentation

* 📚 update xaxis_formatter and 💚 make python 27 pass

* 👕 make flake8 happy

* 💚 appveyor, do conditional install plz

* 💚 appveyor, do conditional install plz

* 💚 skipping pyecharts-javascripthon on appveyor

* 🎨 make different test configurations so that they pass and test the individual aspects

* 🔥 remove unless test code

* 🐛 fix the bug to make pyecharts-javascripthon on python 3.5. 3.6 optional

* 🔨 code refactoring

* 🔨 relocate the python356 exception to add_a_new_function

* 🔨 relocate json_dumps

*  support custom polar. #461

* 📚 document render_item

* 🔨 code refactoring on custom polar chart

* 🔥 remove percentage formatter
2018-04-01 12:52:54 +01:00
kinegratii
c37ab7bdb7 Update code style 2018-01-08 22:47:29 +08:00
kinegratii
0d9045138d Update test case 2018-01-08 15:16:17 +08:00
kinegratii
513b02f1e0 Refactor chart's js_dependencies
1. Now chart.js_dependencies returns list instead of set
2. Expose merge_js_dependencies as utils API
2018-01-06 21:27:20 +08:00
kinegratii
ae0226e9ab Remove unused code 2017-12-26 16:26:12 +08:00
chfw
28dd53fa0c 👕 fix coding styles on test codes 2017-12-10 12:24:32 +00:00
kinegratii
0eaa5192e5 Fix test cases 2017-11-02 20:33:09 +08:00
kinegratii
eecf02fe63 Fix test cases 2017-11-01 22:10:36 +08:00
kinegratii
3a8c94f2e8 Update test case 2017-11-01 20:39:56 +08:00
kinegratii
ea5e89283f Fix some mistakes 2017-11-01 15:28:05 +08:00
chfw
82152af00c 🔬 add missing unit test file 2017-09-01 08:04:52 +01:00