You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/plugins/chart/apexWrapper.js

20 lines
523 B

4 years ago
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!");
}
}
}