Remix.run Logo
hajile 3 months ago

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?

frainfreeze 3 months ago | parent | next [-]

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

infecto 3 months ago | parent | prev | next [-]

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

anentropic 3 months ago | parent | prev | next [-]

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
aitchnyu 3 months ago | parent | prev [-]

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