This sample demonstrates how to set multiline labels.
For detailed implementation, please take a look at the Aspx code tab.
<%@ Page Language="C#" %>
<%@ Register assembly="JQChart.Web" namespace="JQChart.Web.UI.WebControls" tagprefix="jqChart" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="~/Content/jquery.jqChart.css" />
<link rel="stylesheet" type="text/css" href="~/Content/themes/le-frog/jquery-ui-1.8.20.css" />
<script src="<% = ResolveUrl("~/Scripts/jquery-1.11.1.min.js") %>" type="text/javascript"></script>
<script src="<% = ResolveUrl("~/Scripts/jquery.jqChart.min.js") %>" type="text/javascript"></script>
</head>
<body>
<form runat="server">
<jqChart:Chart ID="Chart1" Width="500px" Height="300px" runat="server">
<Title Text="Multiline Labels"></Title>
<Animation Enabled="True" Duration="00:00:01" />
<Axes>
<jqChart:CategoryAxis Location="Bottom">
<Categories>
<jqChart:StringValue Value="Cat 1\nLine 2" />
<jqChart:StringValue Value="Cat 2\nLine 2" />
<jqChart:StringValue Value="Cat 3\nLine 2" />
<jqChart:StringValue Value="Cat 4\nLine 2" />
<jqChart:StringValue Value="Cat 5\nLine 2" />
<jqChart:StringValue Value="Cat 6\nLine 2" />
</Categories>
</jqChart:CategoryAxis>
</Axes>
<Series>
<jqChart:ColumnSeries Title="Multiline\nTitle">
<YValues>
<jqChart:DoubleValue Value="70" />
<jqChart:DoubleValue Value="40" />
<jqChart:DoubleValue Value="85" />
<jqChart:DoubleValue Value="50" />
<jqChart:DoubleValue Value="25" />
<jqChart:DoubleValue Value="40" />
</YValues>
</jqChart:ColumnSeries>
</Series>
</jqChart:Chart>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SamplesBrowser.Models
{
public class EmptyChartModel
{
}
}