rework barChart
add support color for bar chart
add support test for bar chart
fix test
add horizontal interval
add test to flip interval
add more test for interval element