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/08/30 06:46:52 UTC

[GitHub] xhochipe opened a new issue #8978: echarts Uncaught TypeError: Cannot read property 'dataToCoord' of undefined

xhochipe opened a new issue #8978: echarts  Uncaught TypeError: Cannot read property 'dataToCoord' of undefined
URL: https://github.com/apache/incubator-echarts/issues/8978
 
 
    One-line summary [问题简述]
   
    Version & Environment [4.1.0 win10]
   + ECharts version [ECharts [4.1.0 ]:
   + Browser version [chrome  65.0.3325.181 ]:
   + OS Version [win10 ]:
   
   
   
   
   
   
    ECharts option [ECharts配置项]
   javascript
   var option =  {
   	"series": [
   		{
   			"type": "radar",
   			"areaStyle": {
   				"normal": {}
   			},
   			"data": [
   				{
   					"value": [
   						compliance.score,
   						market.score,
   						opinion.score,
   						manage.score
   					],
   				}
   			],
   			itemStyle: {
   				emphasis: {
   					shadowBlur: 10,
   					shadowOffsetX: 0,
   					shadowColor: 'rgba(0, 0, 0, 0.5)'
   				}
   			}
   		}
   	],
   	 tooltip: {
   		trigger: 'axis',
   		axisPointer: {
   			type: 'cross'
   		},
   		backgroundColor: 'rgba(245, 245, 245, 0.8)',
   		borderWidth: 1,
   		borderColor: '#ccc',
   		padding: 10,
   		textStyle: {
   			color: '#000'
   		},
   		position: function (pos, params, el, elRect, size) {
   			var obj = {top: 10};
   			obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
   			return obj;
   		},
   		extraCssText: 'width: 170px'
   	},
   	"radar": {
   		"radius": 120,
   		"name": {
   			"textStyle": {
   				"fontWeight": 600,
   				"padding": [
   					3,
   					5
   				],
   				"color": "#545454",
   				"borderRadius": 3,
   				"fontSize": 12
   			}
   		},
   		"indicator": [
   			{
   				"name": '合规',
   				"max": 100
   			},
   			{
   				"name": "市场 ",
   				"max": 100
   			},
   			{
   				"name": "形象 ",
   				"max": 100
   			},
   			{
   				"name": "经营 ",
   				"max": 100
   			}
   		],
   		triggerEvent:true
   	}
   };
   
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
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