This is the 3-rd task for school. Have written in JavaScript and with library d3.js