{"action":"closed","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/1930","labels_url":"https://api.github.com/repos/palantir/plottable/issues/1930/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/1930/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/1930/events","html_url":"https://github.com/palantir/plottable/issues/1930","id":71483497,"number":1930,"title":"Rectangle plots appear to need useless attributes","user":{"login":"jtamayo","id":177727,"avatar_url":"https://avatars.githubusercontent.com/u/177727?v=3","gravatar_id":"","url":"https://api.github.com/users/jtamayo","html_url":"https://github.com/jtamayo","followers_url":"https://api.github.com/users/jtamayo/followers","following_url":"https://api.github.com/users/jtamayo/following{/other_user}","gists_url":"https://api.github.com/users/jtamayo/gists{/gist_id}","starred_url":"https://api.github.com/users/jtamayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtamayo/subscriptions","organizations_url":"https://api.github.com/users/jtamayo/orgs","repos_url":"https://api.github.com/users/jtamayo/repos","events_url":"https://api.github.com/users/jtamayo/events{/privacy}","received_events_url":"https://api.github.com/users/jtamayo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-28T05:28:27Z","updated_at":"2015-06-06T09:23:58Z","closed_at":"2015-06-06T09:23:58Z","body":"The following code renders a rectangle plot:\r\n\r\n            var xScale = new Plottable.Scale.Linear();\r\n            var yScale = new Plottable.Scale.Linear();\r\n            var plot = new Plottable.Plot.Rectangle(xScale, yScale);\r\n            plot\r\n                .project(\"x\", (d) => d[0], xScale) // WHAT IS THIS FOR\r\n                .project(\"y\", (d) => d[2], yScale) // SAME HERE\r\n                .project(\"x1\", (d) => d[0], xScale)\r\n                .project(\"x2\", (d) => d[1], xScale)\r\n                .project(\"y1\", (d) => 0  , yScale)\r\n                .project(\"y2\", (d) => d[2], yScale);\r\n            plot.addDataset(histogramData.buckets);\r\n            var hist = new Plottable.Component.Table([\r\n                [plot]\r\n            ]).renderTo(<any> d3.select(<any> element[0]).select(\"svg\"));\r\n\r\nNotice the \"x\" and \"y\" attributes. As far as I can tell they are computed by `Rectangle.prototype._generateAttrToProjector`, but must be set explicitly because `AbstractXYPlot.prototype._generateAttrToProjector` depends on them. I would expect not having to set \"x\" and \"y\" on a Rectangle plot."}}