@visactor/vchart
Version:
charts lib based @visactor/VGrammar
12 lines (10 loc) • 487 B
JavaScript
import { CartesianChartSpecTransformer } from "../../cartesian";
export class BaseHistogramChartSpecTransformer extends CartesianChartSpecTransformer {
transformSpec(spec) {
super.transformSpec(spec), spec.axes.forEach((axis => axis.type = "linear"));
}
_getDefaultSeriesSpec(spec) {
return super._getDefaultSeriesSpec(spec, [ "x2Field", "y2Field", "barMinHeight", "barBackground", "barGap" ]);
}
}
//# sourceMappingURL=histogram-base-transformer.js.map