Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleBar Chart breaking changes #492

Closed
joaom182 opened this issue Jun 14, 2016 · 1 comment
Closed

SimpleBar Chart breaking changes #492

joaom182 opened this issue Jun 14, 2016 · 1 comment
Assignees

Comments

@joaom182
Copy link

Hello,

I've been updated D3Plus for the version 1.9.5 - Cornflower, and all SimpleBar charts stop working.
On the version 1.8.0 - Cerulean, all simple bar charts works fine.

I figured that the axis X on the version 1.9.5, must be a Number or Date, and on the version 1.8.0, can be a String.

SimpleBar Chart on 1.8.0

image

Works fine!

SimpleBar Chart on 1.9.5

image

and throw this exception Uncaught TypeError: d3.scale[scaleType](...).domain(...).range(...).clamp is not a function

image

The current data binding is

[
  {
    "X": "PRODUTOS DE METAL",
    "%": -31.7,
    "Setores industriais": "Produção"
  },
  {
    "X": "INDÚSTRIA DE TRANSFORMAÇÃO",
    "%": -12.9,
    "Setores industriais": "Vendas"
  },
  {
    "X": "ALIMENTOS",
    "%": -11.9,
    "Setores industriais": "Vendas"
  },
  {
    "X": "CELULOSE E PAPEL",
    "%": -11,
    "Setores industriais": "Vendas"
  },
  {
    "X": "MADEIRA",
    "%": -2.3,
    "Setores industriais": "Vendas"
  },
  {
    "X": "MÁQUINAS E EQUIPAMENTOS",
    "%": -12.4,
    "Setores industriais": "Vendas"
  },
  {
    "X": "MÁQUINAS, APAR. E MAT. ELÉTRICOS",
    "%": -13,
    "Setores industriais": "Vendas"
  },
  {
    "X": "METALURGIA",
    "%": -4.6,
    "Setores industriais": "Vendas"
  },
  {
    "X": "MINERAIS NÃO METÁLICOS",
    "%": -9.9,
    "Setores industriais": "Vendas"
  },
  {
    "X": "PLÁSTICO",
    "%": -4.2,
    "Setores industriais": "Vendas"
  },
  {
    "X": "PRODUTOS DE METAL",
    "%": -31.1,
    "Setores industriais": "Vendas"
  },
  {
    "X": "TÊXTIL",
    "%": -12,
    "Setores industriais": "Vendas"
  },
  {
    "X": "VEÍCULOS AUTOMOTORES E AUTOPEÇAS",
    "%": -3.5,
    "Setores industriais": "Vendas"
  },
  {
    "X": "VESTUÁRIO",
    "%": -40.9,
    "Setores industriais": "Vendas"
  },
  {
    "X": "METALURGIA",
    "%": -31.1,
    "Setores industriais": "Produção"
  },
  {
    "X": "TÊXTIL",
    "%": -19.4,
    "Setores industriais": "Produção"
  },
  {
    "X": "MÁQUINAS E EQUIPAMENTOS",
    "%": -16.3,
    "Setores industriais": "Produção"
  },
  {
    "X": "MÁQUINAS, APAR. E MAT. ELÉTRICOS",
    "%": -14.1,
    "Setores industriais": "Produção"
  },
  {
    "X": "VEÍCULOS AUTOMOTORES E AUTOPEÇAS",
    "%": -13.6,
    "Setores industriais": "Produção"
  },
  {
    "X": "MINERAIS NÃO METÁLICOS",
    "%": -13.4,
    "Setores industriais": "Produção"
  },
  {
    "X": "PLÁSTICO",
    "%": -12.8,
    "Setores industriais": "Produção"
  },
  {
    "X": "INDÚSTRIA DE TRANSFORMAÇÃO",
    "%": -11.2,
    "Setores industriais": "Produção"
  },
  {
    "X": "MADEIRA",
    "%": -8.8,
    "Setores industriais": "Produção"
  },
  {
    "X": "ALIMENTOS",
    "%": -5.8,
    "Setores industriais": "Produção"
  },
  {
    "X": "CELULOSE E PAPEL",
    "%": -2.8,
    "Setores industriais": "Produção"
  }
]

Where
Axis X: "X"
Axis Y: "%"
ID: "Setores industriais"
Color: "Setores industriais"
Legend: "Setores industriais"

Is there any way to accept string on axis X on version 1.9.5?

@davelandry
Copy link
Member

Thanks for reporting, this will be fixed as part of the next release!

@davelandry davelandry self-assigned this Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants