go-chart icon indicating copy to clipboard operation
go-chart copied to clipboard

Label rotation is sub-optimal.

Open snakeru opened this issue 5 years ago • 1 comments

I thought of fixing it myself, but it proved to be not a 15-minute task, so I'll just leave a feature request here: The label rotation rotates only the text inside it, but the label itself stays horizontal, only changing the height/width to accomodate the rotated text:

Style: chart.Style{
				FillColor:   drawing.Color{1, 255, 3, 10},
				StrokeColor: drawing.Color{255, 6, 7, 20},
				StrokeWidth: 0,
				FontSize:    10,
				TextRotationDegrees:-90,
			},

image

UPDATE: after I increased the font size another problem popped up: the text seems to be not properly aligned. But for me that is fine as I use font size 5 and there it is almost OK.

snakeru avatar Dec 05 '19 10:12 snakeru

The initial idea was to rotate it 45 degrees, btw, but it was not much better: image

snakeru avatar Dec 05 '19 10:12 snakeru