下面以一个环形图为例,现在想做的效果是图例初始化时默认显示第一个图的文字,上代码
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″ />
<title></title>
<script type=”text/javascript” src=”js/echarts.js” ></script>
</head>
<body>
<div id=”main” style=”width: 800px;height: 500px;”></div>
<script type=”text/javascript”>
var myChart = echarts.init(document.getElementById(‘main’));
var ass = {
normal: {
show: false,
position: ‘center’,
textStyle: {
fontSize : ’30’,
fontWeight: ‘bold’
}