mhemesath / r2d3

Raphael Rendered, Data Driven Documents
MIT License
546 stars 133 forks source link

Transform requires additional attributes #125

Closed IPWright83 closed 6 years ago

IPWright83 commented 11 years ago

I noticed the yesterday a slight issue when trying to do a translation transform similar to the following:

.attr("transform", function (d) { return "translate(" + d.x + ")"; });

The translation just got completely ignored. I managed to track this down to the fact that two parameters are expected when using R2D3, so the following fixed it:

.attr("transform", function (d) { return "translate(" + d.x + ", 0)"; });

A minor issue but should be quite easy to fix.

mhemesath commented 11 years ago

Yeah, I have that listed as a limitation on the readme

IPWright83 commented 11 years ago

@mhemesath : My bad, I haven't looked at the readme for quite some time. Feel free to close this issue if you like, I don't mind. Or I should try and find out how to fix it myself and send a pull request... (I've no idea where you find the time to start a project like this!).

mhemesath commented 11 years ago

It's still an issue :)

roryhardy commented 6 years ago

Hi there,

This project is no longer being maintained so this issue is being closed. Thank you for using r2d3 and taking the time to report this issue.