Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
missman
incubator-echarts
提交
5a6f8a36
I
incubator-echarts
项目概览
missman
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
5a6f8a36
编写于
12月 02, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A bunch of tweaks
上级
c29f31a7
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
46 addition
and
26 deletion
+46
-26
src/chart/helper/createListFromArray.js
src/chart/helper/createListFromArray.js
+7
-4
src/chart/line/LineSeries.js
src/chart/line/LineSeries.js
+2
-2
src/chart/line/LineView.js
src/chart/line/LineView.js
+2
-2
src/chart/treemap/TreemapView.js
src/chart/treemap/TreemapView.js
+1
-1
src/component/marker/MarkLineModel.js
src/component/marker/MarkLineModel.js
+2
-1
src/coord/axisDefault.js
src/coord/axisDefault.js
+5
-1
src/coord/axisModelCommonMixin.js
src/coord/axisModelCommonMixin.js
+16
-7
src/coord/cartesian/axisLabelInterval.js
src/coord/cartesian/axisLabelInterval.js
+1
-0
src/preprocessor/helper/compatStyle.js
src/preprocessor/helper/compatStyle.js
+1
-1
src/util/symbol.js
src/util/symbol.js
+9
-7
未找到文件。
src/chart/helper/createListFromArray.js
浏览文件 @
5a6f8a36
...
...
@@ -24,6 +24,9 @@ define(function(require) {
return
list
;
}
function
isStackable
(
axisType
)
{
return
axisType
!==
'
category
'
&&
axisType
!==
'
time
'
;
}
/**
* Creaters for each coord system.
* @return {Object} {dimensions, categoryAxisModel};
...
...
@@ -46,7 +49,7 @@ define(function(require) {
name
:
'
y
'
,
// If two category axes
type
:
isYAxisCategory
?
'
ordinal
'
:
'
float
'
,
stackable
:
!
isYAxisCategory
stackable
:
isStackable
(
yAxisType
)
}];
categoryAxisModel
=
xAxisModel
;
...
...
@@ -57,7 +60,7 @@ define(function(require) {
type
:
'
ordinal
'
},
{
name
:
'
x
'
,
stackable
:
true
stackable
:
isStackable
(
xAxisType
)
}];
categoryAxisModel
=
yAxisModel
;
...
...
@@ -93,7 +96,7 @@ define(function(require) {
name
:
'
radius
'
,
// If two category axes
type
:
isRadiusAxisCategory
?
'
ordinal
'
:
'
float
'
,
stackable
:
!
isRadiusAxisCategory
stackable
:
isStackable
(
radiusAxisModel
.
get
(
'
type
'
))
}];
categoryAxisModel
=
angleAxisModel
;
...
...
@@ -104,7 +107,7 @@ define(function(require) {
type
:
'
ordinal
'
},
{
name
:
'
angle
'
,
stackable
:
true
stackable
:
isStackable
(
angleAxisModel
.
get
(
'
type
'
))
}];
categoryAxisModel
=
radiusAxisModel
;
...
...
src/chart/line/LineSeries.js
浏览文件 @
5a6f8a36
...
...
@@ -68,8 +68,8 @@ define(function(require) {
// 拐点图形旋转控制
// symbolRotate: null,
//
不
显示 symbol, 只有在 tooltip hover 的时候显示
// notShowSymbol: fals
e,
//
是否
显示 symbol, 只有在 tooltip hover 的时候显示
showSymbol
:
tru
e
,
// 标志图形默认只有主轴显示(随主轴标签间隔隐藏策略)
// showAllSymbol: false
...
...
src/chart/line/LineView.js
浏览文件 @
5a6f8a36
...
...
@@ -192,7 +192,7 @@ define(function(require) {
var
isAreaChart
=
!
areaStyleModel
.
isEmpty
();
var
stackedOnPoints
=
getStackedOnPoints
(
coordSys
,
data
);
var
showSymbol
=
!
seriesModel
.
get
(
'
notS
howSymbol
'
);
var
showSymbol
=
seriesModel
.
get
(
'
s
howSymbol
'
);
var
isSymbolIgnore
=
showSymbol
&&
!
isCoordSysPolar
&&
!
seriesModel
.
get
(
'
showAllSymbol
'
)
&&
this
.
_getSymbolIgnoreFunc
(
data
,
coordSys
);
...
...
@@ -206,7 +206,7 @@ define(function(require) {
}
});
// Remove previous created symbols if
notShowSymbol changed to tru
e
// Remove previous created symbols if
showSymbol changed to fals
e
if
(
!
showSymbol
)
{
symbolDraw
.
remove
();
}
...
...
src/chart/treemap/TreemapView.js
浏览文件 @
5a6f8a36
...
...
@@ -651,7 +651,7 @@
* @override
*/
remove
:
function
()
{
this
.
_containerGroup
.
removeAll
();
this
.
_containerGroup
&&
this
.
_containerGroup
.
removeAll
();
this
.
_storage
=
createStorage
();
this
.
_state
=
'
ready
'
;
this
.
_breadcrumb
&&
this
.
_breadcrumb
.
remove
();
...
...
src/component/marker/MarkLineModel.js
浏览文件 @
5a6f8a36
...
...
@@ -109,7 +109,8 @@ define(function (require) {
borderWidth
:
2
}
// emphasis: {}
}
},
animationEasing
:
'
linear
'
}
});
...
...
src/coord/axisDefault.js
浏览文件 @
5a6f8a36
...
...
@@ -104,7 +104,11 @@ define(function (require) {
},
defaultOption
);
// FIXME
var
timeAxis
=
zrUtil
.
merge
({},
valueAxis
);
var
timeAxis
=
zrUtil
.
merge
({
scale
:
true
,
min
:
'
dataMin
'
,
max
:
'
dataMax
'
},
valueAxis
);
var
logAxis
=
zrUtil
.
merge
({},
valueAxis
);
logAxis
.
scale
=
true
;
...
...
src/coord/axisModelCommonMixin.js
浏览文件 @
5a6f8a36
...
...
@@ -24,19 +24,28 @@ define(function (require) {
*/
function
getFormattedLabels
()
{
var
labelFormatter
=
this
.
get
(
'
axisLabel.formatter
'
);
var
labels
=
this
.
axis
.
scale
.
getTicksLabels
()
;
if
(
!
labelFormatter
)
{
return
labels
;
}
else
if
(
typeof
labelFormatter
===
'
string
'
)
{
var
axis
=
this
.
axis
;
var
scale
=
axis
.
scale
;
var
labels
=
scale
.
getTicksLabels
()
;
var
ticks
=
scale
.
getTicks
();
if
(
typeof
labelFormatter
===
'
string
'
)
{
labelFormatter
=
(
function
(
tpl
)
{
return
function
(
val
)
{
return
tpl
.
replace
(
'
{value}
'
,
val
);
};
})(
labelFormatter
);
return
zrUtil
.
map
(
labels
,
labelFormatter
);
}
else
if
(
typeof
labelFormatter
===
'
function
'
)
{
return
zrUtil
.
map
(
ticks
,
function
(
tick
)
{
return
labelFormatter
(
axis
.
type
===
'
category
'
?
scale
.
getLabel
(
tick
)
:
tick
);
},
this
);
}
else
{
return
labels
;
}
return
zrUtil
.
map
(
labels
,
labelFormatter
);
}
return
{
...
...
src/coord/cartesian/axisLabelInterval.js
浏览文件 @
5a6f8a36
...
...
@@ -37,6 +37,7 @@ define(function(require) {
labels
[
i
],
font
,
'
center
'
,
'
top
'
);
rect
[
isAxisHorizontal
?
'
x
'
:
'
y
'
]
+=
tickCoord
;
rect
[
isAxisHorizontal
?
'
width
'
:
'
height
'
]
*=
1.5
;
if
(
!
textSpaceTakenRect
)
{
textSpaceTakenRect
=
rect
.
clone
();
}
...
...
src/preprocessor/helper/compatStyle.js
浏览文件 @
5a6f8a36
...
...
@@ -8,7 +8,7 @@ define(function (require) {
];
function
compatItemStyle
(
opt
)
{
var
itemStyleOpt
=
opt
.
itemStyle
;
var
itemStyleOpt
=
opt
&&
opt
.
itemStyle
;
if
(
itemStyleOpt
)
{
zrUtil
.
each
(
POSSIBLE_STYLES
,
function
(
styleName
)
{
var
normalItemStyleOpt
=
itemStyleOpt
.
normal
;
...
...
src/util/symbol.js
浏览文件 @
5a6f8a36
...
...
@@ -259,9 +259,15 @@ define(function(require) {
},
buildPath
:
function
(
ctx
,
shape
)
{
var
proxySymbol
=
symbolBuildProxies
[
shape
.
symbolType
];
if
(
proxySymbol
)
{
symbolShapeMakers
[
shape
.
symbolType
](
var
symbolType
=
shape
.
symbolType
;
var
proxySymbol
=
symbolBuildProxies
[
symbolType
];
if
(
shape
.
symbolType
!==
'
none
'
)
{
if
(
!
proxySymbol
)
{
// Default rect
symbolType
=
'
rect
'
;
proxySymbol
=
symbolBuildProxies
[
symbolType
];
}
symbolShapeMakers
[
symbolType
](
shape
.
x
,
shape
.
y
,
shape
.
width
,
shape
.
height
,
proxySymbol
.
shape
);
proxySymbol
.
buildPath
(
ctx
,
proxySymbol
.
shape
);
...
...
@@ -322,10 +328,6 @@ define(function(require) {
symbolPath
=
graphic
.
makePath
(
symbolType
.
slice
(
7
),
{},
new
BoundingRect
(
x
,
y
,
w
,
h
));
}
else
{
// Default rect
if
(
!
symbolShapeMakers
[
symbolType
])
{
symbolType
=
'
rect
'
;
}
symbolPath
=
new
Symbol
({
shape
:
{
symbolType
:
symbolType
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录