I am facing an issue with loading a json file that populates charts. The file is generated from external data sources and stored in the asset directory. Is there a method to automatically load the updated json file?
I have attempted to include the code for reading the json file in the initialization, after it, or when requesting the data. However, it does not refresh with the new json file.
Here is how I import the data:
import accessioningAnalyticsDataNC from '../../assets/data/Accessioning-Analytics-NC-Data.json';
I have a function called getData which reads and processes the data.
getData(location: string) {
// Function logic here
}
Unfortunately, despite trying different approaches, the new json file is not being read once it's placed in the assets directory.