|
<ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings'>
// add your additional code here
</ejs-chart>
// add your additional code here
padding: 10, shapePadding: 10,
visible: true, border: {
width: 2, color: 'grey'
},
width: '200' },
// add your additional code here |
|
<template>
// add your additional code here
<div class="control-section">
<div align='center'>
<ejs-chart :zoomSettings='zoomSettings' :axisLabelRender='axisLabelRender' :load='load' >
<e-series-collection>
// add your additional code here
</e-series-collection>
</ejs-chart>
</div>
</div> </template>
<script> export default Vue.extend({
data: function() {
return {
seriesData: [
{ x: 1, y: 10 }, { x: 2, y: 12 },
{ x: 3, y: 8 }, { x: 4, y: 10 },
{ x: 5, y: 10 }, { x: 6, y: 9},
{ x: 7, y: 7 }, { x: 8, y: 9},
{ x: 9, y: 9}, { x: 10, y: 7}
],
zoomSettings: {
mode: 'X',
enableMouseWheelZooming: true,
enablePinchZooming: true,
enableSelectionZooming: true,
enableScrollbar: true,
toolbarItems: []
},
};
},
provide: {
chart: [ColumnSeries, DataLabel, Tooltip, Legend, Zoom, ScrollBar]
},
methods: {
load: function(args) { // add your additional code here
// zoomFactor = (double)Number of datas to be displayed / (double) Total number of datas
var zoomFactor = (5/ args.chart.series[0].dataSource['length']);
args.chart.primaryXAxis.zoomFactor = zoomFactor;
args.chart.zoomModule.isZoomed = true;
}
},
}); </script>
|
enableAutoIntervalOnZooming=true" but it had no effect
enableAutoIntervalOnZooming=true suppose to deal with that exactly?Thanks!