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

Axis label is ignored for all but first elements of "data" #23

Open
zallarak opened this issue Sep 11, 2014 · 0 comments
Open

Axis label is ignored for all but first elements of "data" #23

zallarak opened this issue Sep 11, 2014 · 0 comments

Comments

@zallarak
Copy link

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.

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

1 participant