hist: implement Hist2DView and Hist3DView