Skip to content

Some charts not working with chart.js 3 upward #303

@tsiamer

Description

@tsiamer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions