Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

22.7MB to download the latest release from Github (87.3MB unzipped). That's an insane amount of JS to download and compile (people often complain about React being ~50kb).

The default recommended way to use it is `import * as echarts from 'echarts'` which means you are getting the WHOLE thing.

Does anyone with experience know how big is it when you pick and choose modules?



Not that big if you pick just what you need (but still quite a lot of kb to be fair). Take a quick look at their online builder and test it for yourself https://echarts.apache.org/en/builder.html


In fairness that would be all the charting options baked in. Typically you only install the specific charts you are using.


The lib is modular

My current build for an analytics dashboard app uses:

    echarts.use([
      // chart types:
      BarChart,
      LineChart,
      GaugeChart,
      PieChart,
      // chart features:
      TitleComponent,
      LegendComponent,
      TooltipComponent, // ~30kb
      GridComponent, // ~100kb, controls layout (not visible grid lines)
      LabelLayout,
      DatasetComponent,
      // renderer:
      SVGRenderer,
    ]);
...and comes out at 550kb minified but unzipped


Umm, minified version from site is 335.50 kB gzipped /1.03 MB.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: