fusioncharts-dist icon indicating copy to clipboard operation
fusioncharts-dist copied to clipboard

Size of the bundle has grown to 1.3 MB

Open abhijeetkpawar opened this issue 4 years ago • 5 comments

https://bundlephobia.com/[email protected]

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

abhijeetkpawar avatar Mar 07 '20 03:03 abhijeetkpawar

This message serves as confirmation that you are now successfully registered in our support center.

Registered Email: [email protected] Password: xu0e6mhy0a

You can visit the Support Desk at any time by going to http://help.fusioncharts.com/

Please do let us know if you have any questions.

Regards,

FusionCharts Team

Support Center: http://help.fusioncharts.com/index.php?

ayanonly1 avatar Mar 10 '20 06:03 ayanonly1

@ayanonly1 Is this issue being considered?

abhijeetkpawar avatar Mar 21 '20 08:03 abhijeetkpawar

This message serves as confirmation that you are now successfully registered in our support center.

Registered Email: [email protected] Password: tcsiwxkkqx

You can visit the Support Desk at any time by going to http://help.fusioncharts.com/

Please do let us know if you have any questions.

Regards,

FusionCharts Team

Support Center: http://help.fusioncharts.com/index.php?

ayanonly1 avatar Mar 25 '20 16:03 ayanonly1

https://bundlephobia.com/[email protected]

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/

AyanBhadury avatar Jun 11 '20 05:06 AyanBhadury

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?

SimonVillage avatar Nov 30 '22 04:11 SimonVillage