radar-chart-d3
radar-chart-d3 copied to clipboard
Axis label is ignored for all but first elements of "data"
If the order of elements in data.axes differs (i.e. strength and luck are swapped in data[0] relative to data[1]), the rendered radar chart is inaccurate (order is taken into account over the axis specification, and the order that is used is that of the first element, data[0] in this case). Either the documentation should change to say that you must consistently sort your axes, or this is a bug. I can submit a reproduced bug, but this description should suffice as its pretty straightforward.
var data = [
{
className: 'germany', // optional can be used for styling
axes: [
{axis: "luck", value: 2}
{axis: "intelligence", value: 6},
{axis: "charisma", value: 5},
{axis: "dexterity", value: 9},
{axis: "strength", value: 13},
]
},
{
className: 'argentina',
axes: [
{axis: "strength", value: 6},
{axis: "intelligence", value: 7},
{axis: "charisma", value: 10},
{axis: "dexterity", value: 13},
{axis: "luck", value: 9}
]
}
];
Thanks for an excellent library! I really appreciate it. Hope my comment is able to help you improve it.