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
Label trouble when moving the axisY label to the top. Here's an example with the flight statistics bar graph.
Everything looks good except for extra whitespace to the left of the chart, which appears to be based on the width of the Y-axis title text as if the textAlign property were set to right. Possibly a bug when using titleAngle?
I got close to the layout I wanted with this version, by setting titleX: 0. This removed the extra whitespace, but left-aligns the title to the axis line rather than the left edge of the chart.
I couldn't find a combination of textAlign, textAnchor and titleX values that yielded the layout I was looking for when using titleAngle: 0 without creating the empty whitespace in the first image.
The text was updated successfully, but these errors were encountered:
Hi! At present, setting both titleX and titleY is the right solution, as this communicates to Vega that it should disable automatic axis title layout and bounds calculation. For now, you will have to include an explicit shift of negative pixels to move the title further left.
The whitespace that arises via other methods is a result of the aforementioned automatic layout. I'm adding this to the queue of things to re-visit in v5.10.
Label trouble when moving the axisY label to the top. Here's an example with the flight statistics bar graph.
Everything looks good except for extra whitespace to the left of the chart, which appears to be based on the width of the Y-axis title text as if the
textAlign
property were set toright
. Possibly a bug when usingtitleAngle
?I got close to the layout I wanted with this version, by setting
titleX: 0
. This removed the extra whitespace, but left-aligns the title to the axis line rather than the left edge of the chart.I couldn't find a combination of
textAlign
,textAnchor
andtitleX
values that yielded the layout I was looking for when usingtitleAngle: 0
without creating the empty whitespace in the first image.The text was updated successfully, but these errors were encountered: