$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Chart Feature Multi-line Labels in ASP.NET
Home > How to > Chart Multiline Labels

Information to Multi-line Labels

If you want to display the label text in multiple lines, you may need to use this multi-line label chart feature. Using this chart multi-line label property, you can add new lines to any chart text label types. Here you can view our multi-line labels free online demo. And the multi-line labels property can be used in web chart axis, data series items, legend, tick elements. You can resize, rotate, and change the position to these multiple labels. And Kettic asp.net chart toolkit allow users to set some other properties, like orientation, alignment, font, text font and color to render a special multiple lines label.

How to Add New Line to Chart Label

In this part, we will show you how to create multiple line chart label using the KaxChart component programmatically. In this tutorial, we will provide you two ways to make these effects, using C# example codes or changing the label property in aspx web page directly.


<Caption Text="Primary Title -
(Secondary Title In New Line) >

C# Code

KaxChart1.Caption. Text = "Primary Caption- ";
KaxChart1.Caption.Text += "/r/n";
KaxChart1.Caption.Text += "(Secondary Caption In New Line)";
Apart from above mentioned programming method, you can also add new line to certain label within the property window. Use the enter key to input a new line and use the Ctrl+Enter to save added text. Then the target label will appear in multiple lines.
set chart multi-line label in asp.net ajax using c#
Note: In order to meet the basic needs of running the asp.net KaxChart control, please make sure that your ASP.NET web application has installed NET Framework 3.5 or above versions and that you have installed all the necessary dlls from our ASP.NET AJAX SDK into your ASP.NET web application.

Other Chart Feature Recommendations