Data class representing a comparison bar in a bar chart.
Creates a ComparisonBarData instance and ensures the size of bars and colors lists are equal.
A list of colors for the bars.
The label for the comparison bar.
A list of y-axis values for the bars.