Closed Sigfried closed 8 years ago
It is an object. Should read:
var dimensions = {
{"name":
{
orient: 'right',
type: 'string',
tickPadding: 0,
innerTickSize: 8,
type: "string"
}
},
{"protein": {type:"number"}},
{"calcium": {type:"number"}}
};
Missing one last curly. I will update shortly.
I think it should be my first example above. I don't think what you have is valid javascript, right?
@Sigfried You're right. There's no key for the first object inside of dimensions. Also I'm not familiar with the refactoring, sorry!
Just looked at the code, and from what I can tell it's not an array.
Is it something like this?
var dimensions = {
name: {
orient: 'right',
type: 'string',
tickPadding: 0,
innerTickSize: 8
},
protein: {
type: 'number'
},
calcium: {
type: 'number'
}
};
I think dimensions are being refactored (?), but the documentation is currently confused as to whether it's an object or array; or, at least, I am.
https://github.com/syntagmatic/parallel-coordinates#parcoords_dimensions says:
I think it should either be:
Or something like: