Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144590 | May 13,2019 05:16 PM UTC | May 24,2019 06:08 AM UTC | ASP.NET MVC - EJ 2 | 7 |
![]() |
Tags: Chart |
<div id="container">
@Html.EJS().Chart("container).Render()
</div>
<script>
$(function () {
$("#container").resizable({
resize: function () {
var chart = document.getElementById('container').ej2_instances[0];
chart.refresh();
}
});
});
</script> |
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
var chart = document.getElementById('container').ej2_instances[0];
if ($('#sidebar')[0].style.display == 'none') {
$('#sidebar').show();
} else {
$('#sidebar').hide();
}
chart.refresh();
});
}); |
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.