Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z1593
incubator-echarts
提交
7abad407
I
incubator-echarts
项目概览
z1593
/
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,发现更多精彩内容 >>
提交
7abad407
编写于
11月 22, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak
上级
53bbd07e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
23 addition
and
24 deletion
+23
-24
src/chart/line/LineView.js
src/chart/line/LineView.js
+8
-8
src/chart/map/MapView.js
src/chart/map/MapView.js
+1
-0
src/chart/map/mapSymbolLayout.js
src/chart/map/mapSymbolLayout.js
+1
-1
src/chart/parallel/ParallelSeries.js
src/chart/parallel/ParallelSeries.js
+3
-10
src/component/axis/AxisBuilder.js
src/component/axis/AxisBuilder.js
+1
-1
src/component/axis/AxisView.js
src/component/axis/AxisView.js
+1
-1
src/component/tooltip.js
src/component/tooltip.js
+7
-2
src/coord/axisDefault.js
src/coord/axisDefault.js
+1
-1
未找到文件。
src/chart/line/LineView.js
浏览文件 @
7abad407
...
...
@@ -148,6 +148,12 @@ define(function(require) {
// Always update, or it is wrong in the case turning on legend
symbolDraw
.
updateData
(
data
,
api
,
isSymbolIgnore
);
// Stop symbol animation and sync with line points
// FIXME performance?
data
.
eachItemGraphicEl
(
function
(
el
)
{
el
.
stopAnimation
();
});
// In the case data zoom triggerred refreshing frequently
// Data may not change if line has a category axis. So it should animate nothing
if
(
!
isPointsSame
(
this
.
_stackedOnPoints
,
stackedOnPoints
)
...
...
@@ -278,7 +284,7 @@ define(function(require) {
var
labelInterval
=
categoryAxis
.
getLabelInterval
();
return
function
(
idx
)
{
return
(
typeof
labelInterval
===
'
function
'
)
&&
!
labelInterval
(
idx
,
categoryAxis
.
scale
.
get
Item
(
idx
))
&&
!
labelInterval
(
idx
,
categoryAxis
.
scale
.
get
Label
(
idx
))
||
idx
%
(
labelInterval
+
1
);
};
}
...
...
@@ -325,7 +331,6 @@ define(function(require) {
if
(
cmd
===
'
=
'
)
{
var
el
=
data
.
getItemGraphicEl
(
diffStatus
[
i
].
idx1
);
if
(
el
)
{
el
.
stopAnimation
();
updatedDataInfo
.
push
({
el
:
el
,
ptIdx
:
i
// Index of points
...
...
@@ -338,12 +343,7 @@ define(function(require) {
polyline
.
animators
[
0
].
during
(
function
()
{
for
(
var
i
=
0
;
i
<
updatedDataInfo
.
length
;
i
++
)
{
var
el
=
updatedDataInfo
[
i
].
el
;
vector
.
copy
(
el
.
position
,
// synchronizing with the point on line
polyline
.
shape
.
points
[
updatedDataInfo
[
i
].
ptIdx
]
);
el
.
dirty
();
el
.
attr
(
'
position
'
,
polyline
.
shape
.
points
[
updatedDataInfo
[
i
].
ptIdx
]);
}
});
}
...
...
src/chart/map/MapView.js
浏览文件 @
7abad407
...
...
@@ -59,6 +59,7 @@ define(function (require) {
var
textStyleModel
=
labelModel
.
getModel
(
'
textStyle
'
);
var
layout
=
data
.
getItemLayout
(
idx
);
var
point
=
layout
.
point
;
var
offset
=
layout
.
offset
;
...
...
src/chart/map/mapSymbolLayout.js
浏览文件 @
7abad407
...
...
@@ -44,7 +44,7 @@ define(function (require) {
}
});
// Show label of those region not has legendSymbol(
which is offset 0)
// Show label of those region not has legendSymbol(which is offset 0)
var
data
=
mapSeries
.
getData
();
data
.
each
(
function
(
idx
)
{
var
name
=
data
.
getName
(
idx
);
...
...
src/chart/parallel/ParallelSeries.js
浏览文件 @
7abad407
...
...
@@ -58,18 +58,11 @@ define(function(require) {
},
lineStyle
:
{
normal
:
{
width
:
2
,
opacity
:
0.7
,
type
:
'
solid
'
,
shadowColor
:
'
rgba(0,0,0,0)
'
,
//默认透明
shadowBlur
:
0
,
shadowOffsetX
:
0
,
shadowOffsetY
:
0
width
:
1
,
opacity
:
0.6
,
type
:
'
solid
'
}
},
// areaStyle: {
// },
// smooth: false,
// 拐点图形类型
symbol
:
'
emptyCircle
'
,
...
...
src/component/axis/AxisBuilder.js
浏览文件 @
7abad407
...
...
@@ -374,7 +374,7 @@ define(function (require) {
function
ifIgnoreOnTick
(
axis
,
i
,
interval
)
{
return
axis
.
scale
.
type
===
'
ordinal
'
&&
(
typeof
interval
===
'
function
'
)
&&
!
interval
(
i
,
axis
.
scale
.
get
Item
(
i
))
&&
!
interval
(
i
,
axis
.
scale
.
get
Label
(
i
))
||
i
%
(
interval
+
1
);
}
...
...
src/component/axis/AxisView.js
浏览文件 @
7abad407
...
...
@@ -46,7 +46,7 @@ define(function (require) {
function
ifIgnoreOnTick
(
axis
,
i
,
interval
)
{
return
axis
.
scale
.
type
===
'
ordinal
'
&&
(
typeof
interval
===
'
function
'
)
&&
!
interval
(
i
,
axis
.
scale
.
get
Item
(
i
))
&&
!
interval
(
i
,
axis
.
scale
.
get
Label
(
i
))
||
i
%
(
interval
+
1
);
}
...
...
src/component/tooltip.js
浏览文件 @
7abad407
...
...
@@ -625,6 +625,11 @@ define(function (require) {
var
paramsList
=
zrUtil
.
map
(
seriesList
,
function
(
series
)
{
return
series
.
getDataParams
(
dataIndex
);
});
// If only one series
// FIXME
if
(
paramsList
.
length
===
1
)
{
paramsList
=
paramsList
[
0
];
}
tooltipContent
.
show
(
rootTooltipModel
);
...
...
@@ -730,7 +735,7 @@ define(function (require) {
}
else
{
if
(
typeof
formatter
===
'
string
'
)
{
html
=
formatTpl
(
formatter
,
[
params
]
);
html
=
formatTpl
(
formatter
,
params
);
}
else
if
(
typeof
formatter
===
'
function
'
)
{
var
self
=
this
;
...
...
@@ -749,7 +754,7 @@ define(function (require) {
}
};
self
.
_ticket
=
ticket
;
html
=
formatter
(
[
params
]
,
ticket
,
callback
);
html
=
formatter
(
params
,
ticket
,
callback
);
}
}
...
...
src/coord/axisDefault.js
浏览文件 @
7abad407
...
...
@@ -15,7 +15,7 @@ define(function (require) {
// 坐标轴文字样式,默认取全局样式
nameTextStyle
:
{},
// 文字与轴线距离
nameGap
:
5
,
nameGap
:
1
5
,
// 坐标轴线
axisLine
:
{
// 默认显示,属性show控制显示与否
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录