package ervu_dashboard.model.chart;

import component.chart.enums.MultiChartType;

import ru.cg.webbpm.modules.standard_annotations.editor.ColorEditor;
import ru.cg.webbpm.modules.standard_annotations.editor.Visible;
import ru.cg.webbpm.modules.standard_annotations.validation.NotNull;

/**
 * @author Vitaly Chekushkin
 */
public class ColumnAggregationDataSet {
  @NotNull
  public MultiChartType chartType;
  @NotNull
  public String dataSetLabel;
  @NotNull
  public ColumnAggregationData[] aggregationData;

  @ColorEditor
  public String borderColor;

  @Visible(predicate = "chartType == MultiChartType.BAR || chartType == MultiChartType.HORIZONTAL_BAR")
  public Integer borderRadius;

  @Visible(predicate = "chartType == MultiChartType.BAR || chartType == MultiChartType.HORIZONTAL_BAR")
  public String barPercentage;

  public String xAxesId;

  public String yAxesId;

  public Float tension;

  public Integer drawOrder;
}
