import Pie from "./apexhart/type/pie"; import Bar from "./apexhart/type/bar"; import Linear from "./apexhart/type/linear"; export default class { constructor(typeChart, options) { switch (typeChart) { case 'pie': return new Pie(options); case 'bar': return new Bar(options); case 'linear': return new Linear(options); default: throw new Error("The Type Chart is Not Support!"); } } }