提交 179a29d9 编写于 作者: S sushuang

tweak test

上级 e4637506
...@@ -50,7 +50,7 @@ under the License. ...@@ -50,7 +50,7 @@ under the License.
<h2>cartesian category axis | xAxis: {min: undefined, max: undefined}</h2> <h2>cartesian category axis | xAxis: {min: undefined, max: undefined}</h2>
<div class="chart" id="main1.1"></div> <div class="chart" id="main1.1"></div>
<h2>cartesian category axis | xAxis.data is empty</h2> <h2>cartesian category axis | xAxis.data is empty (always show nothing if dataZoom)</h2>
<div class="chart" id="main1.2"></div> <div class="chart" id="main1.2"></div>
<h2>cartesian category axis | xAxis: {min: -10, max: '类目3'}</h2> <h2>cartesian category axis | xAxis: {min: -10, max: '类目3'}</h2>
......
...@@ -114,7 +114,7 @@ under the License. ...@@ -114,7 +114,7 @@ under the License.
}; };
testHelper.create(echarts, 'mainA', { testHelper.create(echarts, 'mainA', {
title: 'xAxis (type: time) should be 1 hour interval', title: 'xAxis (type: time) should always be 1 hour interval',
option: option option: option
}); });
}); });
......
...@@ -32,10 +32,6 @@ under the License. ...@@ -32,10 +32,6 @@ under the License.
</head> </head>
<body> <body>
<style> <style>
.test-title {
background: #146402;
color: #fff;
}
</style> </style>
...@@ -114,10 +110,10 @@ under the License. ...@@ -114,10 +110,10 @@ under the License.
var chart = testHelper.create(echarts, 'main0', { var chart = testHelper.create(echarts, 'main0', {
title: [ title: [
'Eventful: ', 'Eventful: ',
'+ red circle and red rect trigger events, but green shapes not. ', 'Only this el trigger events: **red circle** and **red rect** of **dataIndex: 1**',
'+ Only dataIndex: 1 trigger event', ' Others not (green rect not)',
'+ events (click, mousedown, mousemove, mouseup) are printed in console log.', 'Events (click, mousedown, mousemove, mouseup) are printed in console log.',
'+ red circle: params.info = 0, red rect: params.info = undefined' 'red circle: params.info = 0, red rect: params.info = undefined'
], ],
option: option option: option
}); });
...@@ -129,76 +125,6 @@ under the License. ...@@ -129,76 +125,6 @@ under the License.
}); });
}); });
}); });
</script>
<script>
// require([
// 'echarts'/*, 'map/js/china' */
// ], function (echarts) {
// // deprecated: this case would be wrong.
// var option = {
// xAxis: {
// min: 90,
// max: 120,
// scale: true
// },
// yAxis: {
// min: 50,
// max: 500,
// scale: true
// },
// dataZoom: [{
// type: 'inside'
// }, {
// type: 'slider'
// }],
// series: [{
// type: 'custom',
// renderItem: function (params, api) {
// var pos = api.coord([api.value(0), api.value(1)]);
// var rectClipBy = {
// x: params.coordSys.x - pos[0],
// y: params.coordSys.y - pos[1],
// width: params.coordSys.width,
// height: params.coordSys.height
// };
// var points = echarts.graphic.clipPointsByRect([
// [0, 0],
// [50, -50],
// [90, -50],
// [140, 0],
// [90, 50]
// ], rectClipBy);
// return {
// type: 'polygon',
// position: pos,
// shape: {points: points},
// style: {
// fill: 'green'
// }
// }
// },
// data: [[100, 300]]
// }]
// };
// var chart = testHelper.create(echarts, 'main1', {
// title: [
// 'Test clipPointsByRect: dataZoom clip should be normal, especially when all clipped',
// ],
// option: option
// });
// });
</script> </script>
...@@ -206,14 +132,6 @@ under the License. ...@@ -206,14 +132,6 @@ under the License.
<script> <script>
require([ require([
...@@ -234,9 +152,11 @@ under the License. ...@@ -234,9 +152,11 @@ under the License.
scale: true scale: true
}, },
dataZoom: [{ dataZoom: [{
type: 'inside' type: 'inside',
filterMode: 'none'
}, { }, {
type: 'slider' type: 'slider',
filterMode: 'none'
}], }],
series: [{ series: [{
type: 'custom', type: 'custom',
...@@ -270,7 +190,7 @@ under the License. ...@@ -270,7 +190,7 @@ under the License.
var chart = testHelper.create(echarts, 'main2', { var chart = testHelper.create(echarts, 'main2', {
title: [ title: [
'Test clip shape', 'The shape should be **clipped** by the grid. (TODO)',
], ],
option: option option: option
}); });
...@@ -422,18 +342,10 @@ under the License. ...@@ -422,18 +342,10 @@ under the License.
x: (x0 + x1) / 2, x: (x0 + x1) / 2,
y: -blockHeight / 2, y: -blockHeight / 2,
text: api.value(1), text: api.value(1),
textFill: '#fff' textFill: '#fff',
textAlign: 'center',
textVerticalAlign: 'middle'
} }
// }, {
// type: 'text',
// style: {
// x: x3 - 5,
// y: -blockHeight,
// textAlign: 'right',
// textVerticalAlign: 'bottom',
// text: api.value(0),
// textFill: '#000'
// }
}] }]
}; };
} }
...@@ -441,7 +353,7 @@ under the License. ...@@ -441,7 +353,7 @@ under the License.
var chart = testHelper.create(echarts, 'main3', { var chart = testHelper.create(echarts, 'main3', {
title: [ title: [
'Test SVG path data auto fit to rect: ', 'Test SVG path data auto fit to rect: ',
'the y axis label (made by custom series) should be align with axis tick', 'the y axis label (made by custom series) should be center',
], ],
option: option option: option
}); });
......
...@@ -376,10 +376,16 @@ under the License. ...@@ -376,10 +376,16 @@ under the License.
series: [{ series: [{
name: 'A', name: 'A',
type: 'map', type: 'map',
label: {
show: true
},
mapType: 'china' mapType: 'china'
}, { }, {
name: 'B', name: 'B',
type: 'map', type: 'map',
label: {
show: true
},
mapType: 'china', mapType: 'china',
datasetIndex: 1 datasetIndex: 1
}] }]
......
...@@ -32,12 +32,11 @@ body > .main { ...@@ -32,12 +32,11 @@ body > .main {
.test-title { .test-title {
padding: 20px; padding: 20px;
background: #0a6d01; background: #242424;
/* background: rgb(182, 120, 7); */ color: #ddd;
color: #fff;
font-weight: normal; font-weight: normal;
text-align: center; text-align: center;
font-size: 14px; font-size: 16px;
} }
.test-title-inner { .test-title-inner {
display: inline-block; display: inline-block;
......
...@@ -33,10 +33,6 @@ under the License. ...@@ -33,10 +33,6 @@ under the License.
</head> </head>
<body> <body>
<style> <style>
.test-title {
background: #146402;
color: #fff;
}
</style> </style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册