victory icon indicating copy to clipboard operation
victory copied to clipboard

VictoryBar - TypeError: CSS2Properties doesn’t have an indexed property setter for ‘0’ in Firefox

Open franciscofabian opened this issue 9 years ago • 4 comments

In Firefox VictoryBar with this data format: <VictoryBar data={[[0, 1], [1, 1], [2, 3], [3, 1]]} x={0} y={1} /> gives the error TypeError: CSS2Properties doesn’t have an indexed property setter for ‘0’, it doesn't happen with VictoryLine or VictoryScatter, or with the usual data format: <VictoryBar data={[ {employee: "Jane Doe", salary: 65000}, {employee: "John Doe", salary: 62000} ... ]} x="employee" y="salary" /> It doesn't happen either in Chrome.

franciscofabian avatar Sep 12 '17 09:09 franciscofabian

This seems to be common problem with react: https://medium.com/@abhaytalreja/react-typeerror-css2properties-doesnt-have-an-indexed-property-setter-for-0-4acea43facd5

franciscofabian avatar Sep 12 '17 09:09 franciscofabian

@boygirl is there anybody looking into this issue?

franciscofabian avatar Sep 26 '17 07:09 franciscofabian

Steps to reproduce:

Open this Jsfiddle in Firefox: https://jsfiddle.net/csrrguaa/

Chart will not render. Looking into console reveals this error:

TypeError: CSS2Properties doesn't have an indexed property setter for '0'

naveedehmad avatar Oct 16 '17 09:10 naveedehmad

We are no longer applying arbitrary attributes from the data object onto styles, so this issue should be fixed.

boygirl avatar Jun 06 '18 01:06 boygirl