50 Commits

Author SHA1 Message Date
陈键冬
b8aad7d3ce
Clean code (#1081)
* Format: code

* Remove: #coding=utf-8

* Add: 新增示例以及数据 json 文件

* Update: 移除 List 使用 Sequence 代替,移除 instance 判断

* Update: 修复 Geo Lines 线条丢失的问题

* Remove: 移除 Mark* data 类型判断

* Update: js_functions/bmap_js_funtions 分开处理

* Update: 解决 Grid 图 title 不为 List 的问题

* Update: self.color 对外暴露

* Test: 完善测试

* Update: 更新测试和示例

* Fix: test

* Fix: 修复 Grid 不能正常渲染主题以及标题的问题

* Add: Bar 图新增 gap 参数

* Add: example

* Update: 百度地图 ak 保存至环境变量中
2019-05-08 09:03:01 +08:00
陈键冬
c2b86c1102 Test: make ci happy 2019-04-13 22:48:56 +08:00
chenjiandongx
75a0a3461c Update: update example 2019-03-25 16:17:42 +08:00
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
陈键冬
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
c6c7fac3c1 🔥 drop pink because it does not work on mac. and update format_code.sh (#764) 2018-09-12 07:35:23 +01: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
陈键冬
66c01984d9 Setup enhance (#716)
* Enhance: setup.py for human

* Update: remove python3.4

* Update: micro change

* Update: update pink version

* Patch: 修复 fix-online 补丁
2018-08-31 08:38:49 +08:00
陈键冬
ae55458c58 Fix online (#714)
* Fix: 修复 online() 方法失效的 bug

* Docs: update changelog

* Add: 新增测试

* Patch: enable_nteract host 参数发挥作用

* Fix: 修复测试
2018-08-30 21:44:19 +08:00
jaska
7a93e63a99 More themes: westeros, wonderland, chalk, halloween, essos, walden and purple-passion (#666)
* 🔥 remove the lock that I have made previously. accidentially, it closes for extension. https://github.com/pyecharts/pyecharts/issues/655

* 📚 update version and change log

* Docs: black

* Docs: 更新主题文档
2018-08-12 10:37:48 +08: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
fd16ffb66d dark, vintage, macarons, infographic, shine and roma themes (#530)
* 🐛 turn on split line for scatter diagram. fix #516

* 🔥 remove documentation that echos the function name

*  support dark theme. fix #512

*  support global_theme in configure function. improves #512

*  use_theme, related to #512

*  support 5 more external themes which come from echarts-themes-pypkg and echarts-themes-js, #512

* 📰 add missing test fixtures

* 💚 make unit test pass

* 📚 document themes usage

* 📚 add cross reference

* 📚 update change log and pump version

* Update: update some docs

* Update: typo fixed

* Update: prepare docs update

* Update: 鉴于现在 md 做 long description 效果不佳,转化为 rst 又出现问题,所以暂时取消

* Fix: fixed broken test, remove unused codecs
2018-05-04 18:24:30 +08: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
b617893b10 Extend EchartsEnvironment to render image directly so as to help pdf export (#444)
*  initial prototype

* 🔨 replace extra_context with **kwargs

*  test **kwargs

* 🔥 clean up the render.html

*  initial prototype for tight integration of pyecharts-snapshot

* 🐛 fix rendering position in jupyter note book and 🔥 remove the prototype

*  allow png, jpg and svg in jupyter notebook

* 🔥 revert optimization changes

* 🔥 get rid of useless code

* 🔥 get rid of useless code

* 📚 update documentation and fix #311

* 🔬 more test coverage

* 📚 update environment extension architecture

* 📚 more docs

*  remove the need for configure() statement for python users. jupyter user have to use configure(). 🔨 replace extra_context with **kwargs finally

* 💚 fix broken unit test

* 📚 update documentation - space, space, space

* 🔬 more test coverage

* 📚 no support for rendering page as image

* 🔬 more test coverage

*  @kinegratii  create a jupyter image context

* 💚 make unit tests pass

* 👕 make flake8 happy

* 👕 one last space to be added

* 👕 address review feedbacks
2018-03-17 13:17:13 +00:00
kinegratii
a180ca857c 重构渲染代码 (#424)
* Refactor notebook render

1. Merge template files and remove unused files.
2. Move render function to environment class
3. Extract notebook test cases to a new module

* Refactor chart render

1. Add render_* to EchartsEnvironment class
2. Remove engine.render
3. Remove unused template files

* Fix online between test cases.

* Update document and changelog

* Rename some functions

* Update some mistakes

* Remove debug code

* Refactor env.render_chart_to_notebook  method
2018-03-07 18:15:15 +08:00
jaska
6f1a627edd Echarts 4 - SVG (#420)
*  new branch for echarts 3.8.5

* 🚜 update jupyter-echarts to 1.4.0

* 🚜 update jupyter-echarts

* 💄 name the release candidate

* 💚 pass unit test

* 🎨 update to use echarts 4.0.2

*  support svg renderer, related to #337

* 🐛 fix the missing registry.json and update jupyter rendering

* 🐛 force 3d charts to use canvas renderer. fix #343

*  upgrade jupyter-echarts-pypkg version

* 📚 create release diary
2018-03-03 16:05:15 +00:00
kinegratii
5eb04b8f72 Merge branch 'dev' into feature-update 2018-02-28 20:01:01 +08:00
kinegratii
4b956b0cbe Rename Base.show_config to print_echarts_options
1. This change uses the deprecated progress.
2018-02-28 09:32:44 +08:00
chfw
858c4dd395 🔨 code refactor the test code and assert Candlestick 2018-02-26 08:23:55 +00:00
chfw
db4ab95f6c first prototype that passes all unit tests. it reads built-in templates/js/echarts, as well as ~/.pyecharts/map-extension-a/, and more in ~/.pyecharts/ 2018-01-01 23:16:23 +00:00
chfw
33daabb0df 🔬 enforce future rendering of notebook having the default localhost url 2017-12-18 18:19:37 +00:00
chfw
37f9879abe 🔬 increase the test coverage a bit further. the casting will sort dictionary keys if a dictionary should be casted 2017-11-18 23:25:48 +00:00
chfw
924d5992c6 🔬 increase test coverage a bit 2017-11-18 23:10:07 +00:00
chenjiandongx
de7ffff184 测试修复 2017-10-25 11:19:27 +08:00
chenjiandongx
e2ff167043 测试代码整理 2017-10-21 19:30:06 +08:00
chfw
1e9fa51a25 turn show_config into valid javascript object notation instead of python notation, which undervalues the output 2017-10-13 22:12:30 +01:00
chenjiandongx
a7a7d69573 测试代码整理 2017-10-12 22:17:12 +08:00
chfw
3a7b417184 test cases for page_title 2017-09-08 07:15:27 +01:00
chfw
a81362f634 🤝 Merge remote-tracking branch 'chenjiandongx/dev' into dev 2017-09-07 13:15:21 +01:00
chenjiandongx
5ec75b9076 code clean: clear up test code 2017-09-07 15:10:54 +08:00
chfw
968eaf8509 🤝 merge 2017-09-06 14:08:52 +01:00
chenjiandongx
56792dd717 pandas&numpy example update 2017-08-24 16:34:39 +08:00
chfw
2f956478a8 🔬 improve test coverage 2017-08-22 22:41:26 +01:00
chfw
8f010fa425 test all notebook rendering functions 2017-08-17 21:47:52 +01:00
chfw
c3945afee1 🔥 remove the hack which does the installation of echarts to jupyter notebooks. The hack may face issues because it may not solve all jupyter notebook installation issues and we may spend more time in maintaining the hack itself. Hence an officially support nbextension management utilities was taken in 2017-08-15 09:39:43 +01:00
chfw
12d2f68c4a 🤝 Merge remote-tracking branch 'chenjiandongx/master' 2017-08-14 09:19:51 +01:00
chfw
4fce605a40 make the way for future javascript updates #84 2017-08-14 08:12:59 +01:00
chenjiandongx
7302e1690f integrate custom module, move file to custom package 2017-08-14 13:59:42 +08:00
chfw
bb31508f89 #84 offline mode for jupyter notebook. No longer, the internet connection at notebook runtime is required. As long as pyecharts has been installed successfully, the POWER is with you. 2017-08-13 23:44:02 +01:00
chenjiandongx
9940b0bdb6 👏 release version 0.1.9.3 2017-08-10 01:49:20 +08:00
chenjiandongx
ac1cad067c update documentation 2017-08-08 17:29:07 +08:00
chfw
3ea3713196 test pandas dataframe 2017-08-07 21:59:43 +01:00
chfw
0c282bd4a5 test numpy int64 array 2017-08-07 19:00:41 +01:00
chfw
d8b4f61efc 🔥 burn down npcast and pdcast. No longer they are reqired. Simply pass on pandas index, values and numpy data type 2017-08-06 23:02:48 +01:00
chfw
be48039059 provide an option for the user to embed the chart div block and its configurations in their own web pages 2017-08-03 23:40:43 +01:00