Update sample to reflect changes to API and add handling of a press/click in plot area to toggle between the histogram options plus linear views to show the differences.