Add intervals basic data functions
Improve intervals frequency code

* Abstract count function
Improve javascript id
Add intervals frequency pie chart
Improve variable name
Abstract pie_chart data generate to function
Add chromatic intervals pie chart
Add chromatic leap chart