Articles in this section
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"))

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied