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

Dateset build size is big, how to use parts of it? #66

Open
calebeaires opened this issue Dec 23, 2019 · 3 comments
Open

Dateset build size is big, how to use parts of it? #66

calebeaires opened this issue Dec 23, 2019 · 3 comments

Comments

@calebeaires
Copy link

  • Platform: Vue CLI 3 + ViserJS

I am using viserjs to show a single chart. I use date-set to pivot the data to an Pie Chart, like the code below.

import DataSet from "@antv/data-set";
    const dv = new DataSet.View().source(data);

    dv.transform({
      type: "percent",
      field: this.measureName,
      dimension: this.dimensionName,
      as: "percent"
    });

Is there some way to import just the transform part of the @antv/data-set lib (ex.: import {transform} from "@antv/data-set")?

After build, the size of @antv/data-set is big, but my code does not need everthing!

Screen Shot 2019-12-23 at 12 12 36

@ThenMorning
Copy link

+1

@ThenMorning
Copy link

+1

I had fixed it by import what i used from "node_modules/antv/lib/transform" .

@topwood
Copy link

topwood commented Oct 9, 2022

+1

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

3 participants