setData method
Implementation
@override
void setData(int index, ChartSegment segment) {
super.setData(index, segment);
segment as HistogramSegment<T, D>
..series = this
..x = xValues[index]
..y = yValues[index]
..bottom = bottom
.._binWidth = _binWidth
..isEmpty = isEmpty(index);
}