Articles in this section
Category / Section

How to set minimum and maximum values for PivotChart axis in JavaScript?

2 mins read

This KB illustrates that to set minimum and maximum values for JavaScript PivotChart axis.

Solution:

You can set minimum and maximum values for PivotChart axis manually, using the following code examples with respective to JS, ASP and MVC platforms.

JavaScript  

$("#PivotChart1").ejPivotChart({
   url: "../wcf/OlapChartService.svc", 
            primaryYAxis: {
                  range: { min: 0, max: 9000000, interval: 1000000 }
            }
});

ASP

<ej:PivotChart ID="PivotChart1" runat="server" Url="../wcf/OlapChartService.svc">
           <PrimaryYAxis>
                <Range Min="0" Max="9000000" Interval="1000000" />
          </PrimaryYAxis>
</ej:PivotChart>

MVC

@Html.EJ().Pivot().PivotChart("PivotChart1").Url(Url.Content("~/wcf/OlapChartService.svc")).PrimaryYAxis(axisRange => axisRange.Range(range => range.Min(0).Max(9000000).Interval(1000000)))

 

Conclusion

I hope you enjoyed learning about how to set minimum and maximum values for PivotChart axis in JavaScript.

You can refer to our JavaScript PivotClient feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript PivotClient example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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