question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global datasets options for existing custom chart extension

See original GitHub issue

Documentation Is:

  • Missing or needed
  • Confusing
  • Not Sure?

Global datasets options for existsing custom chart extension

There is a new structure to configure the datasets options at global level for each chart type.

In the documentation where it’s explained how to extend existing charts, it’s reported:

// Sets the default config for ‘derivedBubble’ to be the same as the bubble defaults. // We look for the defaults by doing Chart.defaults[chartType] // It looks like a bug exists when the defaults don’t exist Chart.defaults.derivedBubble = Chart.defaults.bubble;

It looks like that you don’t have to create any global dataset options, even if I think it should, like all other default options, something like:

Chart.defaults.derivedBubble = Chart.defaults.bubble;
Chart.defaults.global.datasets.derivedBubble = Chart.defaults.global.datasets.bubble;

Is this part missing into New Charts documentation?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
etimbergcommented, Oct 30, 2019

Closing as #6649 is merged

0reactions
stockiNailcommented, Oct 30, 2019

@benmccann created PR #6649. Hopefully it is ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugins | Chart.js
Plugins are the most efficient way to customize or change the default behavior of a chart. They have been introduced at version 2.1....
Read more >
Create Custom Charts with the Extensions API | A Slice of Keesh
In this tutorial, I'll be showing you how to use Chart.js to build your own custom charts. Of course, this tutorial can be...
Read more >
Datawrapper: Create charts, maps, and tables
Product. Datawrapper lets you show your data as beautiful charts, maps or tables with a few clicks. Find out more about all the...
Read more >
How to use Chart.js for Dataset Visualization? - DevTeam.Space
There are options of global configuration and dataset type configuration. Read more details here. Chart.js API: It enlists all the global methods for...
Read more >
A Complete Overview of the Best Data Visualization Tools
Tableau has a variety of options available, including a desktop app, server and hosted online versions, and a free public option. There are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found