Microcharts icon indicating copy to clipboard operation
Microcharts copied to clipboard

[Feature] Rotation Label

Open sandydelhoute opened this issue 1 year ago • 1 comments

I need a rotation label for axe X for barchart

I add two element for implementation rotation. I add enum options in Orientation

RightInclined, LeftInclined,

I change 'else if' to 'switch case' in function DrawLabel present in file drawhelper and i add the code case Orientation.RightInclined: { canvas.Translate(point.X, point.Y - (bounds.Width / 2) + textSize); canvas.RotateDegrees(45); break; } case Orientation.LeftInclined: { canvas.Translate(point.X - bounds.Width / 2 - textSize, point.Y + (bounds.Width / 2) - textSize / 2); canvas.RotateDegrees(-45); break; } example: image

sandydelhoute avatar Sep 12 '23 09:09 sandydelhoute

It will be very great to be able to customize the orientation of the label

titiBeOne avatar Sep 13 '23 12:09 titiBeOne