CVI ships with two examples that plot histograms: mode.prj and tempsys.prj.
In CVI 9.01, go to Help >> Find Examples, then click on the search tab and enter histogram.
In CVI 6.0, go to C:\Program Files\National Instruments\MeasurementStudio\CVI\samples, and search for mode.prj or tempsys.prj