How to set minimum and maximum values for PivotChart axis in JavaScript?
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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!