Options.datasets[type] sounds to do not exist
See original GitHub issueThe PR #8090 should restore the old format to manage options.datasets
object and, as written in the documentation, the dataset options can be changed at 3 different levels and are evaluated with the following priority:
- per dataset: dataset.*
- per chart: options.datasets[type].*
- or globally: Chart.defaults.controllers[type].datasets.*
My expectation is to have in my bar chart instance the chart.options.datasets.bar
with all options of bar dataset.
Instead, see the console of CodePen https://codepen.io/stockinail/pen/GRjZGRK, chart.options.datasets.bar
doesn’t exist and the node chart.options.datasets
doesn’t contains any dataset type but the options of bar dataset.
I’m not sure if this is a bug or if I misunderstood the PR #8090.
Chart.js version: dist/master
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
I am having this error in charts v3 chartjs-chart-treemap ...
options.elements.treemap.labels.color. Since it looks like you want it in the dataset, your datasets array would look like this:
Read more >Options | Chart.js
Options are resolved from top to bottom, using a context dependent route. ... dataset.type defaults to config.type , if not specified.
Read more >Types of synthetic data and 4 real-life examples (2022) - Statice
There are different types of synthetic data: media, text, and tabular. This article presents examples of companies using synthetic data, from Amazon's Alexa ......
Read more >Synthetic Data for Machine Learning: its Nature, Types, and ...
But collecting real data is not always an option due to the cost, ... Regarding its composition, there are two types of synthetic...
Read more >Datasets Documentation - Kaggle
Not only are open, accessible data formats better supported on the platform, ... The simplest and best-supported file type available on Kaggle is...
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 FreeTop 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
Top GitHub Comments
I confirm it works as expected! Thank you @kurkle
But looking at the output:
There might be something wrong still (the animations, barPercentage and categoryPercentage seem misplaced).