-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Subject of the issue
Describe your issue here.
Using chart.js 2.9.4 and everything works fine, but when i update to chart.js 3 or 4 it just does not show the bar charts
Steps to reproduce
Tell us how to reproduce this issue.
Errors:
function mergeScaleConfig(config, options) {
const chartDefaults = overrides[config.type] || {scales: {}};
const configScales = options.scales || {};
const chartIndexAxis = getIndexAxis(config.type, options);
const firstIDs = Object.create(null);
const scales = Object.create(null);
Object.keys(configScales).forEach(id => {
const scaleConf = configScales[id];
if (!isObject(scaleConf)) {
return console.error(`Invalid scale configuration for scale: ${id}`);
}
if (scaleConf._proxy) {
if (!isObject(scaleConf)) {
return console.error(`Invalid scale configuration for scale: ${id}`);
}
if (scaleConf._proxy) {
return console.warn(`Ignoring resolver passed as options for scale: ${id}`);
}
const axis
Expected behaviour
It should have worked as with the previous chart.js version
Actual behaviour
It should have rendered the bar chart, also will their be any options to configure the grid on and off, seems now chart.js are off by default.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels