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

Offset for the rest of the charts. #54

Open
jwerre opened this issue May 23, 2019 · 2 comments
Open

Offset for the rest of the charts. #54

jwerre opened this issue May 23, 2019 · 2 comments

Comments

@jwerre
Copy link

jwerre commented May 23, 2019

I noticed there's an offset for Bar but not for the rest of the charts. It would be nice to have an offset for Pie, Smooth Line, etc as well.

@andreaferretti
Copy link
Owner

You are right. For now, let me offer two suggestions:

  • For Pie and Radar charts, there is no need to have an offset parameter, since there is center which determines where the graph goes anyway
  • In general, you can do without the offset parameter by putting something like transform="translate(20,30)" as an attribute of the SVG element

@jwerre
Copy link
Author

jwerre commented May 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants