Check config in a correct place too (options.plugins)
See original GitHub issueCurrently this plugin waits for config in options.zoom
and options.pan
while the correct place for them is options.plugins.zoom
and options.plugins.pan
respectively (https://www.chartjs.org/docs/latest/developers/plugins.html#plugin-options). This problem also makes a pain to use the plugin with TypeScript, because it doesn’t expect options
to contain zoom
and pan
properties and emits an error.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Configuring Plugin Usage with Plugin Options | Gatsby
Plugins loaded into a Gatsby site can have options passed in to customize how a plugin operates. This guide refers to creating plugins,...
Read more >Configure Plugin Options (Tenable.sc 5.23.x)
Configure Plugin Options · In the Total column, view the number of plugins in the family. · To enable or disable all plugins...
Read more >Guide to Configuring Plug-ins - Apache Maven
To configure the Mojo from your POM with the desired URL, timeout and options you might have something like the following: <project> ......
Read more >Plugins | Chart.js
Plugin options are located under the options.plugins config and are scoped by the plugin ID: options.plugins.{plugin-id} .
Read more >Creating Options Pages - WordPress Codex
gif"); ?> The below example uses the new Settings API to create and save your plugin options <?php // create custom plugin settings...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We could read from both locations now and remove the old one at 1.0. We could add a
TODO(1.0)
in the code to track in lieu of an issueFYI, DefinitelyTyped/DefinitelyTyped#31440 now allows to extend the TypeScript definition for the plugin options. That means plugins can independently provide declaration files for their public API. For example, the datalabels plugin now exposes these types in the
/types
folder (9e0026597
).