update lib to render bar chart with label
simple statistic function