Replies: 1 comment 1 reply
-
Bumping in hopes of an answer because it's driving me absolutely insane not being able to find a solution to this seemingly simple issue. I currently have a mixed bar-line graph that looks like this, where line points are centered between vertical grid lines: I need to modify this so that instead, line points are aligned ON vertical grid lines. Specifically, the left grid line of each "division", as such: In this use case it is normal to have no point on the last (rightmost) grid line, as the line points represent some value at the beginning of each "division". So far everywhere I've found something approaching this issue online (e.g. here, for example), the proposed solution has had something to do with setting Out of desperation I have even tried adding an additional fake data point to my line dataset to try to get it to line up nicely with grid lines with I'm at my wits' end with this, any guidance would be appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have searched for a solution to the following problem extensively and read a number of SO posts and other discussions/issues on here, but haven't found anything that works.
I have a graph as follows, that contains a number of datasets in bar type, and two line datasets. Currently, the points of the line sets align horizontally to the center of the bar "divisions". I understand this is the default behaviour and I understand why it makes sense in a lot of cases, but in this particular use case I need the points to align to the left-side grid line of each division.
The proposed solution I've come across the most is to use
offset: false
, but what this does here is align the first point of the line sets to the leftmost grid line, and the last point to the rightmost grid line. This is unsuitable for this use case, as it causes all the other points to spread to fill the space inbetween, rather than aligning to the left grid line as desired.The reason for this, of course, is that there is one more grid line than there are divisions (in this case 26 divisions and therefore 27 grid lines, but this number is not fixed in practice for this use case). The correct solution will be something that results in no point being aligned with the last (rightmost) grid line.
Any help to get this to display the way I need it to would be greatly appreciated, thank you!
Beta Was this translation helpful? Give feedback.
All reactions