Title in Xamarin.iOS Chart(SfChart)
7 Oct 20201 minute to read
Following properties are used to customize its appearance.
TextColor– used to change the color of the text.
BackgroundColor– used to change the background color.
BorderColor– used to change the border color.
Opacity- used to control the transparency of the title.
BorderWidth– used to change the border width.
Font– used to change the text size, font family and font weight.
EdgeInsets- used to change the margin for title.
chart.Title.Text = "Efficiency of Oil Fired Power Production"; chart.Title.TextColor = UIColor.Blue;
chart.Title.Text = "Efficiency of Oil Fired Power Production"; chart.Title.TextAlignment = UITextAlignment.Left; chart.Title.TextColor = UIColor.Blue;
By using the
LineBreakMode property, You can wrap the chart title text content. The default value of this property is
chart.Title.Text = "Percentage change in efficiency of oil-fired power production in Russia for six months; chart.Title.TextColor = UIColor.Blue; chart.Title.LineBreakMode = UILineBreakMode.TailTruncation;