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

Created English version of echarts-all.js file, would like to contribute file to ECharts #2321

Closed
WebCodePro719 opened this issue Jan 2, 2016 · 18 comments

Comments

@WebCodePro719
Copy link
Contributor

Hello, I've created an English version of the echarts-all.js file and would like to contribute it to the ECharts GitHub repository. Using Google Translate, I've translated the chart tooltips and title tags to English. I've also included some additional themes in the echarts-all.js file (the original file only includes default, infographic and macarons themes). If you find that this updated echarts-all.js file is helpful, perhaps it could be made available for download along with the original Chinese version. I've also included a couple bar chart examples in the zip. I wasn't sure if I should make a pull request to submit this to ECharts since the changes are significant. I really like ECharts, thanks for making it open source. Hopefully this English version of echarts-all.js file is helpful.
EChartsAll-English.zip

@adi76
Copy link

adi76 commented Apr 20, 2016

thanks

@oguzozgen
Copy link

ty

@markopill
Copy link

thanks, very helpful

@pissang pissang closed this as completed Apr 4, 2017
@annjawn
Copy link

annjawn commented Apr 30, 2017

Is there a future roadmap to support multiple languages through global default options?

@KugonicU
Copy link

Thanks a lot. Save a lot of hours of work!

@dyve
Copy link

dyve commented Jul 8, 2017

I would love multiple languages (translatable strings or a simple JS associative array).

@EgleKat
Copy link

EgleKat commented Jul 26, 2017

How do I add it to the library, it doesn't seem to work for me

@WebCodePro719
Copy link
Contributor Author

@EgleKat Copy the theme JS file(s) into the folder called "theme." Make sure the name of the theme is added to the chart code (2 places).

@zherman91
Copy link

Hello. I just tried this last night and its working however, my color scheme went away and was replaced with pinks and blues and I'm not sure how to adjust this. I'm new to echarts so i most likely missed something small. Can anyone help?

@WebCodePro719
Copy link
Contributor Author

WebCodePro719 commented Feb 8, 2018

Hi @zherman91 - it's hard to figure out what is causing the problem without seeing your code. But it could be a problem with the line of JS code where you add the theme. For example the default code is this:

var myChart = echarts.init(document.getElementById('main')); myChart.setOption({

If you want to add a theme, then the code would be something like this:

var myChart = echarts.init(document.getElementById('main'), 'green'); myChart.setOption({

I'm assuming you're using ECharts version 2 in this case. The themes for ECharts 3.0 are installed differently. There are separate JS files for the themes in version 3.

@annjawn
Copy link

annjawn commented Feb 8, 2018

@zherman91 check what theme you are using. I am pretty sure it's the theme that is causing the colors.

@annjawn
Copy link

annjawn commented Feb 8, 2018

BTW @WebCodePro719 , we've been using your english version in our internal environments for almost a year now and it's still going strong. Thanks again!

@zherman91
Copy link

@WebCodePro719 - Thanks so much for the reply! I will give this a shot but I'm pretty sure that's what i was missing. Thanks again!

1 similar comment
@zherman91
Copy link

@WebCodePro719 - Thanks so much for the reply! I will give this a shot but I'm pretty sure that's what i was missing. Thanks again!

@WebCodePro719
Copy link
Contributor Author

@annjawn that's great to hear - I'm glad this file has been helpful.

@WebCodePro719
Copy link
Contributor Author

@zherman91 No problem, I hope you figure it out.

@huseinzol05
Copy link

echarts.min.js.zip

Translated version 4.2.0-rc.2

screenshot 2018-12-17 at 12 24 54 am

@XargoNet
Copy link

Hi, many thanks for this file.
I'm facing an issue with Maps:
TypeError: echarts.registerMap is not a function

I'm loading the provinces of a country, to be drawn. It work with any other echarts.js file (non translated).

I tried to add the function with no luck.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests