/** * @description 图表类 * @params {Object} 图表 option * @params {Number} 横坐标百分比 x * @params {Number} 纵坐标百分比 y * @params {Number} 宽度百分比 width * @params {Number} 高度百分比 height * @params {Number} 图表类型 type */ export default class chartClass { constructor({ type, option, x = 0, y = 0, width = 300, height = 300, Xdata = [], Ydata = [], BarXdata = [], BarYdata = [], LineXdata = [], LineYdata = [], ScatterXdata = [], ScatterYdata = [], formFilterAlignData = [], //条件过滤字段 }) { this.id = Math.random(); this.option = option; this.x = x; this.y = y; this.width = width; this.height = height; this.type = type; this.Xdata = Xdata; this.Ydata = Ydata; this.BarXdata = BarXdata; this.BarYdata = BarYdata; this.LineXdata = LineXdata; this.LineYdata = LineYdata; this.ScatterXdata = ScatterXdata; this.ScatterYdata = ScatterYdata; this.formFilterAlignData = formFilterAlignData; } }