提交 ac941880 编写于 作者: S SHUANG SU 提交者: sushuang

fix: remove unnecessary test.

上级 4e413f6f
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="lib/esl.js"></script>
<script src="lib/config.js"></script>
<script src="lib/facePrint.js"></script>
<script src="lib/testHelper.js"></script>
<link rel="stylesheet" href="lib/reset.css" />
</head>
<body>
<div id="main0"></div>
<div></div>
<script>
var chart;
var myChart;
require([
'echarts'
], function (echarts) {
var option = {
legend: {
data: ['回调颜色', '固定颜色'],
left: 'center',
bottom: 'bottom'
},
xAxis: {
type: 'category',
data: [100, 200, 20, 30, 60, 89],
},
yAxis: {
type: 'value',
},
series: [
{
name: '固定颜色',
type: 'line',
data: [123, 568, 111, 222, 123, 56],
itemStyle: {
color: param => {
return colorList[param.seriesIndex]
},
borderWidth: 10,
},
smooth: true
},
{
name: '回调颜色',
type: 'line',
data: [800, 900, 220, 130, 660, 289],
itemStyle: {
color: param => {
return colorList[param.seriesIndex]
},
borderWidth: 10,
},
smooth: true
}
]
};
chart = myChart = testHelper.create(echarts, 'main0', {
option: option
});
});
</script>
</body>
</html>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册