You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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