提交 4a1ead4b 编写于 作者: S sushuang 提交者: 羡辙

tweak test

上级 74d0728a
......@@ -50,7 +50,7 @@ under the License.
<h2>cartesian category axis | xAxis: {min: undefined, max: undefined}</h2>
<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>
<h2>cartesian category axis | xAxis: {min: -10, max: '类目3'}</h2>
......
......@@ -114,7 +114,7 @@ under the License.
};
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
});
});
......
......@@ -32,10 +32,6 @@ under the License.
</head>
<body>
<style>
.test-title {
background: #146402;
color: #fff;
}
</style>
......@@ -114,10 +110,10 @@ under the License.
var chart = testHelper.create(echarts, 'main0', {
title: [
'Eventful: ',
'+ red circle and red rect trigger events, but green shapes not. ',
'+ Only dataIndex: 1 trigger event',
'+ events (click, mousedown, mousemove, mouseup) are printed in console log.',
'+ red circle: params.info = 0, red rect: params.info = undefined'
'Only this el trigger events: **red circle** and **red rect** of **dataIndex: 1**',
' Others not (green rect not)',
'Events (click, mousedown, mousemove, mouseup) are printed in console log.',
'red circle: params.info = 0, red rect: params.info = undefined'
],
option: option
});
......@@ -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>
......@@ -206,14 +132,6 @@ under the License.
<script>
require([
......@@ -234,9 +152,11 @@ under the License.
scale: true
},
dataZoom: [{
type: 'inside'
type: 'inside',
filterMode: 'none'
}, {
type: 'slider'
type: 'slider',
filterMode: 'none'
}],
series: [{
type: 'custom',
......@@ -270,7 +190,7 @@ under the License.
var chart = testHelper.create(echarts, 'main2', {
title: [
'Test clip shape',
'The shape should be **clipped** by the grid. (TODO)',
],
option: option
});
......@@ -422,18 +342,10 @@ under the License.
x: (x0 + x1) / 2,
y: -blockHeight / 2,
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.
var chart = testHelper.create(echarts, 'main3', {
title: [
'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
});
......
......@@ -376,10 +376,16 @@ under the License.
series: [{
name: 'A',
type: 'map',
label: {
show: true
},
mapType: 'china'
}, {
name: 'B',
type: 'map',
label: {
show: true
},
mapType: 'china',
datasetIndex: 1
}]
......
......@@ -32,12 +32,11 @@ body > .main {
.test-title {
padding: 20px;
background: #0a6d01;
/* background: rgb(182, 120, 7); */
color: #fff;
background: #242424;
color: #ddd;
font-weight: normal;
text-align: center;
font-size: 14px;
font-size: 16px;
}
.test-title-inner {
display: inline-block;
......
......@@ -33,10 +33,6 @@ under the License.
</head>
<body>
<style>
.test-title {
background: #146402;
color: #fff;
}
</style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册