Islandora-Labs / islandora_usage_stats_charts

Module that provides charts showing usage statistics for Islandora objects.
GNU General Public License v3.0
1 stars 0 forks source link

Provide admin option to use a local copy of Chart.js #6

Open mjordan opened 6 years ago

mjordan commented 6 years ago

In case sites don't want to rely on a remote CDN.

mjordan commented 4 years ago

Using a local copy can be done as follows, as we discovered in #28:

  1. In your drupal/sites/all/libraries directory, create a subdirectory chartjs
  2. In your new chartjs directory, run wget https://github.com/chartjs/Chart.js/releases/download/v2.9.3/Chart.bundle.js
  3. You should now have a file called Chart.bundle.js.
  4. At admin/islandora/tools/islandora_usage_stats_charts, enter the URL to the newly downloaded Chart.bundle.js file, e.g. https://example.com/sites/all/libraries/chartjs/Chart.bundle.js