Open calebeaires opened 4 years ago
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")?
import {transform} from "@antv/data-set"
After build, the size of @antv/data-set is big, but my code does not need everthing!
+1
I had fixed it by import what i used from "node_modules/antv/lib/transform" .
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.
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!