Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148254 | Oct 11,2019 12:25 PM UTC | Oct 14,2019 09:43 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Charts |
<div class="control-section col-lg-9" align="center">
<ejs-chart id="container" >
<e-chart-primaryxaxis valueType="Category" title="Countries"></e-chart-primaryxaxis>
<e-series-collection>
<e-series dataSource="ViewBag.dataSource" xName="xValue" yName="yValue" type="@Syncfusion.EJ2.Charts.ChartSeriesType.Column">
</e-series>
</e-series-collection>
</ejs-chart>
</div>
<script>
document.getElementById('button').onclick = () => {
var chart = document.getElementById('container').ej2_instances[0];
chart.exportModule.export("PDF", 'chart');
};
</script> |
Before click |
After click |
|
|
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.