Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
4a1ead4b
I
incubator-echarts
项目概览
x649585723
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a1ead4b
编写于
1月 23, 2019
作者:
S
sushuang
提交者:
羡辙
1月 24, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak test
上级
74d0728a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
111 deletion
+24
-111
test/axis-extrema.html
test/axis-extrema.html
+1
-1
test/axis-interval.html
test/axis-interval.html
+1
-1
test/custom-feature.html
test/custom-feature.html
+13
-101
test/dataset-charts.html
test/dataset-charts.html
+6
-0
test/lib/reset.css
test/lib/reset.css
+3
-4
test/tmp-base.html
test/tmp-base.html
+0
-4
未找到文件。
test/axis-extrema.html
浏览文件 @
4a1ead4b
...
@@ -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>
...
...
test/axis-interval.html
浏览文件 @
4a1ead4b
...
@@ -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
});
});
});
});
...
...
test/custom-feature.html
浏览文件 @
4a1ead4b
...
@@ -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)
'
,
'
+ e
vents (click, mousedown, mousemove, mouseup) are printed in console log.
'
,
'
E
vents (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
:
[
'
T
est clip shape
'
,
'
T
he 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
});
});
...
...
test/dataset-charts.html
浏览文件 @
4a1ead4b
...
@@ -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
}]
}]
...
...
test/lib/reset.css
浏览文件 @
4a1ead4b
...
@@ -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
:
1
4
px
;
font-size
:
1
6
px
;
}
}
.test-title-inner
{
.test-title-inner
{
display
:
inline-block
;
display
:
inline-block
;
...
...
test/tmp-base.html
浏览文件 @
4a1ead4b
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录