Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
3733d096
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,发现更多精彩内容 >>
提交
3733d096
编写于
1月 04, 2015
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
component style can be configured
上级
b7654f1a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
11 deletion
+19
-11
src/component/dataRange.js
src/component/dataRange.js
+12
-8
src/component/dataZoom.js
src/component/dataZoom.js
+1
-1
src/component/timeline.js
src/component/timeline.js
+2
-2
src/config.js
src/config.js
+4
-0
未找到文件。
src/component/dataRange.js
浏览文件 @
3733d096
...
...
@@ -233,6 +233,7 @@ define(function (require) {
var
itemWidth
=
this
.
dataRangeOption
.
itemWidth
;
var
itemHeight
=
this
.
dataRangeOption
.
itemHeight
;
var
textHeight
=
zrArea
.
getTextHeight
(
'
国
'
,
font
);
var
mSize
=
10
;
var
needValueText
=
true
;
...
...
@@ -272,16 +273,16 @@ define(function (require) {
style
:
{
x
:
lastX
,
y
:
lastY
,
width
:
itemWidth
*
10
,
width
:
itemWidth
*
mSize
,
height
:
itemHeight
,
color
:
zrColor
.
getLinearGradient
(
lastX
,
lastY
,
lastX
+
itemWidth
*
10
,
lastY
,
lastX
,
lastY
,
lastX
+
itemWidth
*
mSize
,
lastY
,
colorList
)
},
hoverable
:
false
};
lastX
+=
itemWidth
*
10
+
this
.
_textGap
;
lastX
+=
itemWidth
*
mSize
+
this
.
_textGap
;
}
else
{
itemShape
=
{
...
...
@@ -291,15 +292,15 @@ define(function (require) {
x
:
lastX
,
y
:
lastY
,
width
:
itemWidth
,
height
:
itemHeight
*
10
,
height
:
itemHeight
*
mSize
,
color
:
zrColor
.
getLinearGradient
(
lastX
,
lastY
,
lastX
,
lastY
+
itemHeight
*
10
,
lastX
,
lastY
,
lastX
,
lastY
+
itemHeight
*
mSize
,
colorList
)
},
hoverable
:
false
};
lastY
+=
itemHeight
*
10
+
this
.
_textGap
;
lastY
+=
itemHeight
*
mSize
+
this
.
_textGap
;
}
this
.
shapeList
.
push
(
new
RectangleShape
(
itemShape
));
// 可计算元素的位置缓存
...
...
@@ -600,6 +601,7 @@ define(function (require) {
text
:
this
.
_textFormat
(
this
.
dataRangeOption
.
max
),
textX
:
textXStart
,
textY
:
textYStart
,
textFont
:
font
,
color
:
this
.
getColor
(
this
.
dataRangeOption
.
max
),
rect
:
coverRectStart
,
x
:
pointListStart
[
0
][
0
],
...
...
@@ -619,6 +621,7 @@ define(function (require) {
text
:
this
.
_textFormat
(
this
.
dataRangeOption
.
min
),
textX
:
textXEnd
,
textY
:
textYEnd
,
textFont
:
font
,
color
:
this
.
getColor
(
this
.
dataRangeOption
.
min
),
rect
:
coverRectEnd
,
x
:
pointListEnd
[
0
][
0
],
...
...
@@ -730,6 +733,7 @@ define(function (require) {
var
totalHeight
=
0
;
var
font
=
this
.
getFont
(
this
.
dataRangeOption
.
textStyle
);
var
textHeight
=
zrArea
.
getTextHeight
(
'
国
'
,
font
);
var
mSize
=
10
;
if
(
this
.
dataRangeOption
.
orient
==
'
horizontal
'
)
{
// 水平布局,计算总宽度
...
...
@@ -741,7 +745,7 @@ define(function (require) {
totalWidth
=
((
this
.
dataRangeOption
.
splitNumber
<=
0
||
this
.
dataRangeOption
.
calculable
)
?
(
itemWidth
*
10
+
itemGap
)
?
(
itemWidth
*
mSize
+
itemGap
)
:
dataLength
*
(
itemWidth
+
itemGap
))
+
(
this
.
dataRangeOption
.
text
&&
typeof
this
.
dataRangeOption
.
text
[
0
]
!=
'
undefined
'
...
...
@@ -784,7 +788,7 @@ define(function (require) {
totalHeight
=
((
this
.
dataRangeOption
.
splitNumber
<=
0
||
this
.
dataRangeOption
.
calculable
)
?
(
itemHeight
*
10
+
itemGap
)
?
(
itemHeight
*
mSize
+
itemGap
)
:
dataLength
*
(
itemHeight
+
itemGap
))
+
(
this
.
dataRangeOption
.
text
&&
typeof
this
.
dataRangeOption
.
text
[
0
]
!=
'
undefined
'
...
...
src/component/dataZoom.js
浏览文件 @
3733d096
...
...
@@ -36,7 +36,6 @@ define(function (require) {
};
this
.
_fillerSize
=
28
;
// 控件大小,水平布局为高,纵向布局为宽
this
.
_handleSize
=
8
;
// 手柄大小
// this._fillerShae; // 填充
// this._startShape; // 起始手柄
// this._endShape; // 结束手柄
...
...
@@ -49,6 +48,7 @@ define(function (require) {
this
.
option
.
dataZoom
=
this
.
reformOption
(
this
.
option
.
dataZoom
);
this
.
zoomOption
=
this
.
option
.
dataZoom
;
this
.
_handleSize
=
this
.
zoomOption
.
handleSize
;
if
(
!
this
.
myChart
.
canvasSupported
)
{
// 不支持Canvas的强制关闭实时动画
this
.
zoomOption
.
realtime
=
false
;
...
...
src/component/timeline.js
浏览文件 @
3733d096
...
...
@@ -404,8 +404,8 @@ define(function (require) {
if
(
timelineOption
.
controlPosition
===
'
none
'
)
{
return
;
}
var
iconSize
=
15
;
var
iconGap
=
5
;
var
iconSize
=
controlStyle
.
itemSize
;
var
iconGap
=
controlStyle
.
itemGap
;
var
x
;
if
(
timelineOption
.
controlPosition
===
'
left
'
)
{
x
=
this
.
_location
.
x
;
...
...
src/config.js
浏览文件 @
3733d096
...
...
@@ -302,6 +302,7 @@ define(function() {
dataBackgroundColor
:
'
#eee
'
,
// 数据背景颜色
fillerColor
:
'
rgba(144,197,237,0.2)
'
,
// 填充颜色
handleColor
:
'
rgba(70,130,180,0.8)
'
,
// 手柄颜色
handleSize
:
8
,
showDetail
:
true
,
// xAxisIndex: [], // 默认控制所有横向类目
// yAxisIndex: [], // 默认控制所有横向类目
...
...
@@ -539,6 +540,8 @@ define(function() {
}
},
controlStyle
:
{
itemSize
:
15
,
itemGap
:
5
,
normal
:
{
color
:
'
#333
'
},
emphasis
:
{
color
:
'
#1e90ff
'
}
},
...
...
@@ -1294,6 +1297,7 @@ define(function() {
//symbolRotate: null,
//smooth: false,
large
:
false
,
precision
:
2
,
effect
:
{
show
:
false
,
loop
:
true
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录