]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix incorrect defaults location for Bubble (#8271)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Tue, 5 Jan 2021 12:57:09 +0000 (14:57 +0200)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 12:57:09 +0000 (07:57 -0500)
docs/docs/charts/bubble.mdx
test/specs/global.defaults.tests.js

index ec6b3d5438a9a8e96d09b90f2c13f598e966dd84..9c42ab33a2c0eefddfa0500162e802290d1e81e5 100644 (file)
@@ -106,7 +106,7 @@ All these values, if `undefined`, fallback to the associated [`elements.point.*`
 
 ## Default Options
 
-We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at `Chart.defaults.bubble`.
+We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at `Chart.defaults.controllers.bubble`.
 
 ## Data Structure
 
index 0b00382d475d11a2c6bd72db3099175de92e6233..6974c43bf7a0eb92dd3b7e4e7068088a862f470a 100644 (file)
@@ -1,7 +1,7 @@
 describe('Default Configs', function() {
        describe('Bubble Chart', function() {
                it('should return correct tooltip strings', function() {
-                       var config = Chart.defaults.bubble;
+                       var config = Chart.defaults.controllers.bubble;
                        var chart = window.acquireChart({
                                type: 'bubble',
                                data: {