echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open WebCodePro719 opened this issue 10 years ago • 18 comments

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

WebCodePro719 avatar Jan 02 '16 23:01 WebCodePro719

ty

oguzozgen avatar Dec 27 '16 07:12 oguzozgen

thanks, very helpful

markopill avatar Jan 09 '17 09:01 markopill

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

annjawn avatar Apr 30 '17 22:04 annjawn

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

KugonicU avatar Jun 19 '17 13:06 KugonicU

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

dyve avatar Jul 08 '17 06:07 dyve

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

EgleKat avatar Jul 26 '17 14:07 EgleKat

@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).

WebCodePro719 avatar Jul 29 '17 17:07 WebCodePro719

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?

zherman91 avatar Feb 06 '18 14:02 zherman91

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.

WebCodePro719 avatar Feb 08 '18 01:02 WebCodePro719

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

annjawn avatar Feb 08 '18 03:02 annjawn

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!

annjawn avatar Feb 08 '18 03:02 annjawn

@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!

zherman91 avatar Feb 08 '18 14:02 zherman91

@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!

zherman91 avatar Feb 08 '18 14:02 zherman91

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

WebCodePro719 avatar Feb 09 '18 00:02 WebCodePro719

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

WebCodePro719 avatar Feb 09 '18 00:02 WebCodePro719

echarts.min.js.zip

Translated version 4.2.0-rc.2

screenshot 2018-12-17 at 12 24 54 am

huseinzol05 avatar Dec 16 '18 16:12 huseinzol05

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!

XargoNet avatar Jan 30 '19 16:01 XargoNet