BarPlot constructor

BarPlot(
  1. List<String> names,
  2. List<Color> colors,
  3. List<String> labels,
  4. List<int> yValues,
  5. List<List<int>> values,
)

Implementation

BarPlot(
  List<String> names,
  List<Color> colors,
  List<String> labels,
  List<int> yValues,
  List<List<int>> values,
) {
  this.names.addAll(names);
  this.colors.addAll(colors);
  this.labels.addAll(labels);
  this.yValues.addAll(yValues);
  this.values = values;
}