issue #20715: share most of processdata
issue #20715: fixes to bar chart
issue #20715: processed data should be chart data
issue #20715: use collection instead of rawdata
issue #20715: more abstraction