Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
02410158
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,发现更多精彩内容 >>
提交
02410158
编写于
10月 27, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak
上级
89ed2d18
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
25 deletion
+31
-25
src/chart/helper/DataSymbol.js
src/chart/helper/DataSymbol.js
+5
-4
src/chart/map/MapSeries.js
src/chart/map/MapSeries.js
+3
-1
src/component/marker/MarkPointModel.js
src/component/marker/MarkPointModel.js
+19
-17
src/component/marker/markerHelper.js
src/component/marker/markerHelper.js
+4
-3
未找到文件。
src/chart/helper/DataSymbol.js
浏览文件 @
02410158
...
@@ -191,7 +191,7 @@ define(function (require) {
...
@@ -191,7 +191,7 @@ define(function (require) {
// Update common properties
// Update common properties
var
normalStyleAccessPath
=
[
'
itemStyle
'
,
'
normal
'
];
var
normalStyleAccessPath
=
[
'
itemStyle
'
,
'
normal
'
];
var
emphasisStyleAccessPath
=
[
normalStyleAccessPath
[
0
]
,
'
emphasis
'
];
var
emphasisStyleAccessPath
=
[
'
itemStyle
'
,
'
emphasis
'
];
data
.
eachItemGraphicEl
(
function
(
el
,
idx
)
{
data
.
eachItemGraphicEl
(
function
(
el
,
idx
)
{
var
itemModel
=
data
.
getItemModel
(
idx
);
var
itemModel
=
data
.
getItemModel
(
idx
);
var
normalItemStyleModel
=
itemModel
.
getModel
(
normalStyleAccessPath
);
var
normalItemStyleModel
=
itemModel
.
getModel
(
normalStyleAccessPath
);
...
@@ -240,10 +240,11 @@ define(function (require) {
...
@@ -240,10 +240,11 @@ define(function (require) {
},
},
remove
:
function
(
enableAnimation
)
{
remove
:
function
(
enableAnimation
)
{
if
(
this
.
_data
)
{
var
group
=
this
.
group
;
var
group
=
this
.
group
;
var
data
=
this
.
_data
;
if
(
data
)
{
if
(
enableAnimation
)
{
if
(
enableAnimation
)
{
this
.
_
data
.
eachItemGraphicEl
(
function
(
el
)
{
data
.
eachItemGraphicEl
(
function
(
el
)
{
el
.
animateTo
({
el
.
animateTo
({
scale
:
[
0
,
0
]
scale
:
[
0
,
0
]
},
200
,
'
cubicOut
'
,
function
()
{
},
200
,
'
cubicOut
'
,
function
()
{
...
...
src/chart/map/MapSeries.js
浏览文件 @
02410158
...
@@ -120,7 +120,9 @@ define(function (require) {
...
@@ -120,7 +120,9 @@ define(function (require) {
for
(
var
i
=
0
;
i
<
seriesGroup
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
seriesGroup
.
length
;
i
++
)
{
var
subData
=
seriesGroup
[
i
].
getData
();
var
subData
=
seriesGroup
[
i
].
getData
();
if
(
!
isNaN
(
subData
.
getRawValue
(
dataIndex
)))
{
if
(
!
isNaN
(
subData
.
getRawValue
(
dataIndex
)))
{
seriesNames
.
push
(
seriesGroup
[
i
].
name
);
seriesNames
.
push
(
encodeHTML
(
seriesGroup
[
i
].
name
)
);
}
}
}
}
...
...
src/component/marker/MarkPointModel.js
浏览文件 @
02410158
...
@@ -66,32 +66,34 @@ define(function (require) {
...
@@ -66,32 +66,34 @@ define(function (require) {
// 炫光模糊
// 炫光模糊
// shadowBlur: 0
// shadowBlur: 0
},
},
label
:
{
normal
:
{
show
:
true
,
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// 可选为'left'|'right'|'top'|'bottom'
position
:
'
inside
'
// 默认使用全局文本样式,详见TEXTSTYLE
// textStyle: null
},
emphasis
:
{
show
:
true
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
}
},
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
// color: 各异,
// color: 各异,
// 标注边线颜色,优先于color
// 标注边线颜色,优先于color
// borderColor: 各异,
// borderColor: 各异,
// 标注边线线宽,单位px,默认为1
// 标注边线线宽,单位px,默认为1
borderWidth
:
2
,
borderWidth
:
2
label
:
{
show
:
true
,
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// 可选为'left'|'right'|'top'|'bottom'
position
:
'
inside
'
// 默认使用全局文本样式,详见TEXTSTYLE
// textStyle: null
}
},
},
emphasis
:
{
emphasis
:
{
// color: 各异
// color: 各异
label
:
{
show
:
true
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
}
}
}
}
}
}
}
...
...
src/component/marker/markerHelper.js
浏览文件 @
02410158
...
@@ -15,6 +15,7 @@ define(function (require) {
...
@@ -15,6 +15,7 @@ define(function (require) {
return
valueArr
;
return
valueArr
;
};
};
var
curry
=
zrUtil
.
curry
;
// TODO Specified percent
// TODO Specified percent
var
markerTypeCalculator
=
{
var
markerTypeCalculator
=
{
/**
/**
...
@@ -23,21 +24,21 @@ define(function (require) {
...
@@ -23,21 +24,21 @@ define(function (require) {
* @param {string} baseAxisDim
* @param {string} baseAxisDim
* @param {string} valueAxisDim
* @param {string} valueAxisDim
*/
*/
min
:
zrUtil
.
curry
(
markerTypeCalculatorWithExtent
,
0
),
min
:
curry
(
markerTypeCalculatorWithExtent
,
0
),
/**
/**
* @method
* @method
* @param {module:echarts/data/List} data
* @param {module:echarts/data/List} data
* @param {string} baseAxisDim
* @param {string} baseAxisDim
* @param {string} valueAxisDim
* @param {string} valueAxisDim
*/
*/
max
:
zrUtil
.
curry
(
markerTypeCalculatorWithExtent
,
1
),
max
:
curry
(
markerTypeCalculatorWithExtent
,
1
),
/**
/**
* @method
* @method
* @param {module:echarts/data/List} data
* @param {module:echarts/data/List} data
* @param {string} baseAxisDim
* @param {string} baseAxisDim
* @param {string} valueAxisDim
* @param {string} valueAxisDim
*/
*/
average
:
zrUtil
.
curry
(
markerTypeCalculatorWithExtent
,
0.5
)
average
:
curry
(
markerTypeCalculatorWithExtent
,
0.5
)
};
};
var
dataTransform
=
function
(
data
,
baseAxis
,
valueAxis
,
item
)
{
var
dataTransform
=
function
(
data
,
baseAxis
,
valueAxis
,
item
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录