Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以切换成dark主题么? #512

Closed
bty2000 opened this issue Apr 28, 2018 · 10 comments
Closed

可以切换成dark主题么? #512

bty2000 opened this issue Apr 28, 2018 · 10 comments
Assignees
Labels

Comments

@bty2000
Copy link

bty2000 commented Apr 28, 2018

pyecharts能否切换成dark主题?

@kinegratii
Copy link
Collaborator

目前暂不支持,可期待后续的版本。

@chfw
Copy link
Member

chfw commented May 1, 2018

screen shot 2018-05-01 at 16 28 43

@chenjiandongx , with 'dark' theme, the rest of the chart does not change color but the axises got white colors, hence they do not appear in white backgroud...

chfw added a commit that referenced this issue May 1, 2018
@chfw
Copy link
Member

chfw commented May 1, 2018

# coding=utf-8
from __future__ import unicode_literals

from pyecharts import Scatter


v1 = [10, 20, 30, 40, 50, 60]
v2 = [10, 20, 30, 40, 50, 60]

scatter = Scatter("散点图示例")
scatter.use_dark_theme()  # <-----
scatter.add("A", v1, v2)
scatter.add("B", v1[::-1], v2)
scatter.render()

output:

screen shot 2018-05-01 at 22 43 58

@chfw chfw self-assigned this May 2, 2018
@kinegratii
Copy link
Collaborator

kinegratii commented May 2, 2018

dark is one of themes.So it should not use use_dark_theme to set theme.
See more at http://echarts.baidu.com/download-theme.html

scatter.use_theme('dark')
# scatter.use_theme('vintage')

In pyecharts ,theme feature will import external javascript file, dependencies will also change.

I prefer that theme may be design completely,and add in a future version.

@chfw
Copy link
Member

chfw commented May 2, 2018

from pyecharts import configure

configure(global_theme='dark')

screen shot 2018-05-02 at 15 39 53

@chfw
Copy link
Member

chfw commented May 2, 2018

let's build one echarts-themes-pypkg, which includes 5 more additional themes?

screen shot 2018-05-02 at 15 43 56

@chenjiandongx
Copy link
Member

@chfw it will be a awesome feature

chfw added a commit that referenced this issue May 2, 2018
chfw added a commit to pyecharts/echarts-themes-js that referenced this issue May 2, 2018
chfw added a commit to pyecharts/echarts-themes-pypkg that referenced this issue May 2, 2018
@chfw
Copy link
Member

chfw commented May 2, 2018

Cannot believe my eyes. pyecharts have 6 more beautiful themes

vintage:

screen shot 2018-05-03 at 00 10 06

macarons:

screen shot 2018-05-03 at 00 13 12

infographic

screen shot 2018-05-03 at 00 13 59

shine:

screen shot 2018-05-03 at 00 14 59

roma:

screen shot 2018-05-03 at 00 17 27

coffee! coffee! please :)

chfw added a commit that referenced this issue May 2, 2018
@bty2000
Copy link
Author

bty2000 commented May 3, 2018

@chfw why i can only use "dark" theme, other themes dont work?

@chfw
Copy link
Member

chfw commented May 3, 2018

pip install echarts-themes-pypkg

chenjiandongx pushed a commit that referenced this issue Mar 26, 2019
* 🐛 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
chenjiandongx pushed a commit that referenced this issue Mar 30, 2019
* 🐛 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
chenjiandongx pushed a commit that referenced this issue Mar 30, 2019
* 🐛 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
chenjiandongx pushed a commit that referenced this issue Mar 30, 2019
* 🐛 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
chenjiandongx pushed a commit that referenced this issue Mar 30, 2019
* 🐛 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants