69 Commits

Author SHA1 Message Date
Feiko
7bff87608e
FIX enable changing locale (#2442)
* FIX enable changing locale

* FIX add locale two more templates

* FIX add tests and defaultLocale

* FIX add tests and defaultLocale

* FIX add locale render in HTML test

---------

Co-authored-by: Feiko Ritsema <fritsema@netflix.com>
2025-07-31 09:37:38 +08:00
sunhailin
ce6353fa7f add api in class Base for echarts stats extension 2024-11-06 15:01:22 +08:00
sunhailin
94784adeef update AnimationOpts, MarkPointOpts, MarkLineOpts, MarkAreaOpts 2024-07-10 10:15:58 +08:00
sunhailin
550d29e562 update function for add_js_events; update macro 2024-06-17 15:08:43 +08:00
sunhailin
0de395a03f migrate from nose to nose2 2024-06-07 18:22:28 +08:00
sunhailin
20276f90dd update test code and add RenderSepType 2024-06-07 15:33:04 +08:00
sunhailinLeo
05ee62f4f1 update RenderOpts 2023-04-06 17:37:04 +08:00
sunhailinLeo
024c41824c code format 2023-04-06 17:04:24 +08:00
Singu
9c79761091 optimize embedded javascript rendering. 2023-03-31 16:32:08 +08:00
Singu
0078c6ec3b add render_opts parameter to all chart classes. 2023-03-31 16:31:15 +08:00
Singu
0fd7d8d279 add inner mode to render() to allow dependent JS files to be embedded in the rendered result 2023-03-31 16:29:41 +08:00
sunhailinLeo
6e32dad6cc update test code and make test coverage to 99% 2023-03-16 16:51:02 +08:00
sunhailinLeo
a87b4cedab update test code 2023-03-16 11:37:38 +08:00
sunhailinLeo
1d5330b155 Update many unit test codes.(Coverage Up to 99%) 2022-04-15 14:08:25 +08:00
jaska
a92a044991 Refactor template (#1308)
* 🚜 initial refactoring

* 🔨 better mixins

* 👕 update code style with black

* 🔥 remove unwanted change

* 🔥 remove unless code blocks

* Update: add tests and replace `eq_` with `assert_equal`

* Fix: Tab prepare_render logic
2019-08-28 16:10:43 +08:00
陈键冬
e65a91c3b7
Add: render supports **kwargs params (#1299)
* Add: render supports **kwargs params

* Add: example

* Add: page notebook category
2019-08-22 15:45:18 +08:00
陈键冬
11f9e2d4bb Fix: polar label (#1273)
* Update: Radius 支持 label 显示

* Fix: 修复测试

* Fix: ci line to long error

* Add: graph example

* Update: example

* Add: freedom-page

* Update: 下班啦

* Update: improve code quality

* Feat: 区域搜索支持模糊匹配

* Update: typehints

* Fix: 循环引用问题

* Add: tests

* Test: disk-friendly
2019-08-12 08:05:41 +01:00
jaska
fa212de5f6
Showstopper in 1.3.0 (#1252)
* 🐛 jshost is none. hence nothing will be shown

* 💚 update assertion variable
2019-07-15 09:40:11 +01:00
陈键冬
e6f268d11a Initopts (#1184)
* 🔨 minor refactoring

* Update: init_opts 支持 dict 传参数

* Update: typehint

* Update: 更新继承关系

* Remove: useless init statements

* Update: test
2019-06-11 06:30:52 +01:00
陈键冬
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