JavaScript COVID-19 Tracker Chart

Also known as Bar Graph, Column Chart or Column Graph

A custom chart type (Racing Bars Chart) to visualize tracking of the Co-Vid 19 virus.
Tha data (country, history of cases) that is taken from API (https://coronavirus-tracker-api.herokuapp.com/confirmed)
In setInterval loop data is sorted by total COVID cases per each day and top 20 cases added to
the bars series in format { category: string, value: number, color: string }. (color - random value in HEX format)

The Animator was used to animate the changing of the value and position order of each county in the list.

// create chart
const newchart = barChart()


// Add bars.
chart.addValues([
    { country: 'Belgium', value: 26,666, color: '#ffffff' }
])