State based Customization - AbhishekPednekar84/covid19-tracker-karnataka GitHub Wiki
The website can easily be customized to pull data for any Indian state/UT. However, at present, this is possible only for the components sourcing data from the Covid19 India api. The pie chart is not directly customizable.
-
In the
config.jsfile located insrc, change theSTATEandSTATE_CODEconstants to a state/UT name (Ex: Kerala) and its corresponding state/UT code/abbreviation (Ex: kl) respectively. This step alone will change the title, cards, table, bar charts and line chart as can be seen in the below screenshot.
Note that the dimensions/scale of the charts might need to be tweaked especially if the customization is being done for states with a large number of cases. -
The About section in
Navbar.jsxand the Credits inFooter.jsxalso have some state-specific references and links. Those will need modifications as well.
![]()