More general data format for histogram.

Now, each dataset can have different values.