I am looking to produce this type of TitleBox in the Microsoft WinForms Chart Control, so that the titlebox is docked to the top of the chartarea.
Is there any way to position the standard titlebox on the top of the chartarea like this or can I add such a textbox to the chart control?
Option 1: You can add a
Label
into theChart
like this:Or you may want to position the Label by docking it to the top..
You can style the
Label
to your liking, even add anImage
..You may need to play with the offset for the label.Height!
Option 2: You can move the Title box around in the same way:
Again: you will want to play around with the way you position the Title. The ones above happend to work here but you will need to change them with you chart..
Remember that the ElementPosition uses 1/100 of the chart size as its unit; this is nice as it scales but makes it hard to set up at first..