apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.43k stars 19.61k forks source link

Link for "Create custom build"-tutorial is missing for v5 documentation #15739

Closed webjohan closed 1 year ago

webjohan commented 3 years ago

Version

5.2.0

Steps to reproduce

Check README.me for: "More custom build approaches can be checked in this tutorial: Create Custom Build of ECharts please." click link Create Custom Build of ECharts. No tutorial found for v5. doc only avalible for v4.

What is expected?

A tutorial for custom build of v5

What is actually happening?

you end up on: https://echarts.apache.org/en/tutorial.html#Customized%20Chart%20Styles


Link should be removed or tutorial added for v5

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list.

Have a nice day! 🍵

pissang commented 3 years ago

We have changed our build infra and are not suggesting creating a custom build with CLI anymore. It's too complex and not well designed. You can either use our online builder if you wan't to use script tag to load it, or check the minimal bundle section in how to import if you are using webpack or some other bundlers.

WissemAouichi commented 3 years ago

@pissang I am using echarts in angular, after trying both the minimal bundle import as in how to import it returned a bundle size of 3.01 Mo when checked with webpack bundle analyzer.

When i used a custom echart file like so: export * from 'echarts/src/echarts';

import 'echarts/src/chart/line'; import 'echarts/src/chart/bar'; // component examples: import 'echarts/src/component/tooltip'; import 'echarts/src/component/title'; import 'echarts/src/component/toolbox';

Then the bundle size was 1.46 Mo.

Using the link downloaded from the online builder in the angular scripts loads everything in the main.js and make it voluminous.

@pissang should i continue using the custom echarts file to have smaller bundle size? what are your recommendations ?

pissang commented 3 years ago

@pissang I am using echarts in angular, after trying both the minimal bundle import as in how to import it returned a bundle size of 3.01 Mo when checked with webpack bundle analyzer.

It will be tree-shaken after minified.

export * from 'echarts/src/echarts';

import 'echarts/src/chart/line';
import 'echarts/src/chart/bar';
// component examples:
import 'echarts/src/component/tooltip';
import 'echarts/src/component/title';
import 'echarts/src/component/toolbox';

This can also work but will be not suggested any more.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!