State based Customization - AbhishekPednekar84/covid19-tracker-karnataka GitHub Wiki

State-based customization

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.

  1. In the config.js file located in src, change the STATE and STATE_CODE constants 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.

  2. The About section in Navbar.jsx and the Credits in Footer.jsx also have some state-specific references and links. Those will need modifications as well.


Home

⚠️ **GitHub.com Fallback** ⚠️