You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/05 12:08:04 UTC

[GitHub] arashdalir opened a new issue #9341: events defined by `chart.on(eventName, ...` are not triggered

arashdalir opened a new issue #9341: events defined by `chart.on(eventName, ...` are not triggered
URL: https://github.com/apache/incubator-echarts/issues/9341
 
 
   ### defined events are not triggered
   (at least) `finished` and `rendered` events are not triggered/executed.
   
   ### Version & Environment
   + ECharts version v4.2.0-rc2
   + Browser version chrome-70.0.3538.77 
   + OS Version windows 7
   
   
   ### Expected behaviour 
   the function defined should be triggered.
   in given example: 
   having 'finished loading' in console 
   
   
   ### ECharts option 
   ```javascript
   var myChart = echarts.init(document.getElementById('chart1'), null, {
   	"devicePixelRatio": null,
   	"renderer": "canvas",
   	"width": null,
   	"height": "600px"
   });
   myChart.setOption({
   	"title": {
   		"text": "test",
   	},
   	"grid": [
   		{
   			"top": "5%",
   			"height": "60%",
   			"width": "60%",
   			"left": "5%",
   			"containLabel": false,
   			"borderColor": "transparent",
   			"show": "1"
   		}
   	],
   	"xAxis": [
   		{
   			"type": "time",
   			"min": "dataMin",
   			"max": "dataMax"
   		}
   	],
   	"yAxis": [
   		{
   			"type": "value",
   		}
   	],
   	"series": {"name": "insufficient_data", "type": "bar"},
   });
   
   myChart.on('finished', function (params){
   	console.log('finished loading');
   });
   ```
   ![image](https://user-images.githubusercontent.com/2896170/47997287-97068480-e0fb-11e8-8397-248f5dc99171.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org