heavysixer / d4

A friendly reusable charts DSL for D3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grid offset

Timopheym opened this issue · comments

If i create a grid for bar chat, the grid line goes throw the group. But i want to set it between the lines. How could it be done in a more elegant way?
screen shot 2014-05-12 at 8 20 56 pm

Hey @Timopheym what is the desired result? Do you want the grid line to be evenly spaced between the two groups?

Yes. For the bar charts, it would make sense to separate ticks from grid lines in order to provide a visual separation among the groups.
screen shot 2014-05-12 at 8 30 51 pm

+1 I would investigate the grid feature because if you can do this with d3 natively you should be able to do it with d4 because it allows you to pass in the accessors already. So the next step would be to figure out how to do this with d3 out of the box.

We did the right choice, to rewrite all our d3 charts to d4.

For line chart it looks more strange
screen shot 2014-05-14 at 3 50 03 pm

How would you control this in native d3?

What do you mean? Just make another position for grid.

Oh I meant how would you do this without d4 because that is how you should be able to do it with d4. Though it is curious that they don't line up with the dots out of the box. Is this something you can post as a fiddle or something?

Fixed in release ed84d7e