Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mjordan opened this issue Mar 9, 2018 · 1 comment
Open

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

mjordan opened this issue Mar 9, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@mjordan
Copy link
Collaborator

mjordan commented Mar 9, 2018

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

@mjordan mjordan added the enhancement New feature or request label Mar 11, 2018
@mjordan
Copy link
Collaborator Author

mjordan commented Jun 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant