Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
0ad808ad
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,发现更多精彩内容 >>
提交
0ad808ad
编写于
1月 07, 2016
作者:
P
pah100
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
timeline option: change symbol
上级
6a25afe6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
34 deletion
+19
-34
src/component/timeline/SliderTimelineModel.js
src/component/timeline/SliderTimelineModel.js
+3
-3
src/component/timeline/SliderTimelineView.js
src/component/timeline/SliderTimelineView.js
+5
-5
src/component/timeline/TimelineModel.js
src/component/timeline/TimelineModel.js
+1
-1
test/timeline-finance.html
test/timeline-finance.html
+4
-12
test/timeline-layout.html
test/timeline-layout.html
+6
-13
未找到文件。
src/component/timeline/SliderTimelineModel.js
浏览文件 @
0ad808ad
...
...
@@ -24,6 +24,9 @@ define(function(require) {
tooltip
:
false
,
// boolean or Object
// data item may also have tootip attr.
symbol
:
'
emptyCircle
'
,
symbolSize
:
10
,
lineStyle
:
{
show
:
true
,
width
:
2
,
...
...
@@ -52,13 +55,10 @@ define(function(require) {
},
itemStyle
:
{
normal
:
{
symbol
:
'
emptyCircle
'
,
symbolSize
:
10
,
color
:
'
#304654
'
,
borderWidth
:
1
},
emphasis
:
{
symbolSize
:
10
,
color
:
'
#c23531
'
}
},
...
...
src/component/timeline/SliderTimelineView.js
浏览文件 @
0ad808ad
...
...
@@ -363,7 +363,7 @@ define(function (require) {
position
:
[
tickCoord
,
0
],
onclick
:
bind
(
this
.
_changeTimeline
,
this
,
dataIndex
)
};
var
el
=
giveSymbol
(
itemStyleModel
,
group
,
symbolOpt
);
var
el
=
giveSymbol
(
item
Model
,
item
StyleModel
,
group
,
symbolOpt
);
graphic
.
setHoverStyle
(
el
,
hoverStyleModel
.
getItemStyle
());
if
(
itemModel
.
get
(
'
tooltip
'
))
{
...
...
@@ -507,7 +507,7 @@ define(function (require) {
// Reuse when exists, for animation and drag.
this
.
_currentPointer
=
giveSymbol
(
pointerModel
,
this
.
_mainGroup
,
{},
this
.
_currentPointer
,
callback
pointerModel
,
pointerModel
,
this
.
_mainGroup
,
{},
this
.
_currentPointer
,
callback
);
},
...
...
@@ -646,10 +646,10 @@ define(function (require) {
/**
* Create symbol or update symbol
*/
function
giveSymbol
(
itemStyleModel
,
group
,
opt
,
symbol
,
callback
)
{
var
symbolType
=
itemStyle
Model
.
get
(
'
symbol
'
);
function
giveSymbol
(
hostModel
,
itemStyleModel
,
group
,
opt
,
symbol
,
callback
)
{
var
symbolType
=
host
Model
.
get
(
'
symbol
'
);
var
color
=
itemStyleModel
.
get
(
'
color
'
);
var
symbolSize
=
itemStyle
Model
.
get
(
'
symbolSize
'
);
var
symbolSize
=
host
Model
.
get
(
'
symbolSize
'
);
var
halfSymbolSize
=
symbolSize
/
2
;
var
itemStyle
=
itemStyleModel
.
getItemStyle
([
'
color
'
,
'
symbol
'
,
'
symbolSize
'
]);
...
...
src/component/timeline/TimelineModel.js
浏览文件 @
0ad808ad
...
...
@@ -33,7 +33,7 @@ define(function(require) {
height
:
40
,
padding
:
5
,
controlPosition
:
'
left
'
,
// '
right' |
'none'
controlPosition
:
'
left
'
,
// '
left' 'right' 'top' 'bottom'
'none'
autoPlay
:
false
,
rewind
:
false
,
// 反向播放
loop
:
true
,
...
...
test/timeline-finance.html
浏览文件 @
0ad808ad
...
...
@@ -76,12 +76,8 @@ var option = {
tooltip
:
{
formatter
:
'
{b} GDP达到一个高度
'
},
itemStyle
:
{
normal
:
{
symbol
:
'
diamond
'
,
symbolSize
:
16
}
}
symbol
:
'
diamond
'
,
symbolSize
:
16
,
},
'
2006-01-01
'
,
'
2007-01-01
'
,
'
2008-01-01
'
,
'
2009-01-01
'
,
'
2010-01-01
'
,
{
...
...
@@ -91,12 +87,8 @@ var option = {
return
params
.
name
+
'
GDP达到又一个高度
'
;
}
},
itemStyle
:
{
normal
:
{
symbol
:
'
diamond
'
,
symbolSize
:
18
}
}
symbol
:
'
diamond
'
,
symbolSize
:
18
},
],
label
:
{
...
...
test/timeline-layout.html
浏览文件 @
0ad808ad
...
...
@@ -60,7 +60,8 @@
makeChart
({
timeline
:
{
lineStyle
:
{
show
:
false
},
itemStyle
:
{
normal
:
{
symbol
:
'
circle
'
,
color
:
'
rgba(194,53,49, 0.5)
'
}},
symbol
:
'
circle
'
,
itemStyle
:
{
normal
:
{
color
:
'
rgba(194,53,49, 0.5)
'
}},
controlStyle
:
{
showPrevBtn
:
false
,
showNextBtn
:
false
,
normal
:
{
color
:
'
rgba(194,53,49, 0.5)
'
,
borderColor
:
'
rgba(194,53,49, 0.5)
'
}},
orient
:
'
vertical
'
,
inverse
:
true
,
x
:
0
,
y
:
40
,
width
:
55
,
height
:
'
80%
'
}});
...
...
@@ -72,22 +73,14 @@
'
2002-01-01
'
,
'
2003-01-01
'
,
'
2004-01-01
'
,
'
2005-01-01
'
,
{
value
:
'
2006-01-01
'
,
itemStyle
:
{
normal
:
{
symbol
:
'
pin
'
,
symbolSize
:
30
}
}
symbol
:
'
pin
'
,
symbolSize
:
30
},
'
2007-01-01
'
,
'
2008-01-01
'
,
'
2009-01-01
'
,
'
2010-01-01
'
,
{
value
:
'
2011-01-01
'
,
itemStyle
:
{
normal
:
{
symbol
:
'
pin
'
,
symbolSize
:
30
}
}
symbol
:
'
pin
'
,
symbolSize
:
30
}
]
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录