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

Size of the bundle has grown to 1.3 MB #11

Open
abhijeetkpawar opened this issue Mar 7, 2020 · 5 comments
Open

Size of the bundle has grown to 1.3 MB #11

abhijeetkpawar opened this issue Mar 7, 2020 · 5 comments

Comments

@abhijeetkpawar
Copy link

https://bundlephobia.com/result?p=fusioncharts@3.15.1

Size of the fusioncharts npm bundle is 1.3MB due to which the whole application bundle has become very big.

@abhijeetkpawar abhijeetkpawar changed the title Size of the byndle has grown to 1.3 MB Size of the bundle has grown to 1.3 MB Mar 7, 2020
@ayanonly1
Copy link
Contributor

ayanonly1 commented Mar 10, 2020 via email

@abhijeetkpawar
Copy link
Author

@ayanonly1
Is this issue being considered?

@ayanonly1
Copy link
Contributor

ayanonly1 commented Mar 25, 2020 via email

@AyanBhadury
Copy link

https://bundlephobia.com/result?p=fusioncharts@3.15.1

Size of the fusioncharts npm bundle is 1.3MB due to which the whole application bundle has become very big.

To reduce the bundle size you can use modular ES6 approach and include those chart type files that you are looking to render, here is a link for reference - https://github.com/fusioncharts/fusioncharts-dist#using-fusioncharts-as-an-es-module

However, if you are still looking to reduce its size, you can use the concept like gzip on the compiler of your app, to make it more optimized - https://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

@SimonVillage
Copy link

Just started to test fusioncharts.

I am working on the react framework and import the chart modules as follows:

import FusionCharts, { ChartObject } from "fusioncharts";
import Area2D from "fusioncharts/fusioncharts.charts";
import FusionTheme from "fusioncharts/themes/fusioncharts.theme.fusion";
import { Component } from "react";
import ReactFC from "react-fusioncharts";

This generates me the following production bundle for the chart:

dist/assets/index.2ea6ad36.js    2626.49 KiB / gzip: 762.78 KiB

I think that 762kb is a bit too much for a chart. To understand if I do anything wrong, is there any overview of the bundle size or the size of the chars library?

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

No branches or pull requests

4 participants