Category / Section
How to rotate the axes label in PivotChart?
1 min read
This KB illustrates that how to rotate the axes label in PivotChart.
Solution:
You can rotate the axis label by using the labelRotation property. Refer to the following code example with respective to JS, ASP and MVC platforms.
JavaScript
$("#PivotChart1").ejPivotChart({url: "../wcf/OlapChartService.svc", labelRotation: 90 });
ASP
<ej:PivotChart ID="PivotChart1" runat="server" Url="../wcf/OlapChartService.svc"> <PrimaryXAxis LabelRotation="90"></PrimaryXAxis> </ej:PivotChart>
MVC
@Html.EJ().Pivot().PivotChart("OlapChart1").Url(Url.Content("~/wcf/OlapChartService.svc")).PrimaryYAxis(primaryYAxis => primaryYAxis.LabelRotation("90"))