Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142743 | Feb 18,2019 05:14 AM UTC | Feb 20,2019 08:58 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: Chart |
Index.cshtml
<div id="container">
@Html.EJS().Chart("container")
// other chart customization
.Load("load").Render()
</div>
<script>
function load(args) {
args.chart.primaryXAxis.labelIntersectAction = ej.base.Browser.isDevice ? 'Hide' : 'None';
args.chart.primaryYAxis.labelIntersectAction = ej.base.Browser.isDevice ? 'Hide' : 'None';
}
</script> |
@Html.EJS().Chart("container")
//Other configurations
.Load("load").Render()
function load(args) {
args.chart.legendSettings.width = ej.base.Browser.isDevice ? "50%" : "100%";
args.chart.legendSettings.height = ej.base.Browser.isDevice ? "50%" : "100%";
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.