import Chart from "../chart.js";

/**
 * 柱状图组件
 * @param {[type]} dataModel [description]
 */
export default class ChartBar extends Chart {

  constructor(__tfp, dataModel, parent) {
    super(__tfp, "ChartBar", dataModel, parent);
  }

  get categoryField() { return this.dataModel.categoryField }
  set categoryField(value) { 
    this.dataModel.categoryField = value;
  }

  get stack() { return this.dataModel.stack }
  set stack(value) { 
    this.dataModel.stack = value ? true : false;
  }

  get series() { return this.dataModel.series }
  set series(value) { 
    this.dataModel.series = value;
  }
}