Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
f42e68e0
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,发现更多精彩内容 >>
提交
f42e68e0
编写于
10月 16, 2018
作者:
D
deqingli
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/apache/incubator-echarts
上级
cb2d7774
d4aeda4b
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
150 addition
and
53 deletion
+150
-53
.eslintrc.yaml
.eslintrc.yaml
+3
-0
dist/echarts-en.js
dist/echarts-en.js
+5
-2
dist/echarts-en.js.map
dist/echarts-en.js.map
+1
-1
dist/echarts-en.min.js
dist/echarts-en.min.js
+1
-1
dist/echarts.js
dist/echarts.js
+5
-2
dist/echarts.js.map
dist/echarts.js.map
+1
-1
dist/echarts.min.js
dist/echarts.min.js
+1
-1
dist/extension/dataTool.js
dist/extension/dataTool.js
+0
-20
package.json
package.json
+1
-1
src/chart/bar.js
src/chart/bar.js
+4
-3
src/chart/radar/radarLayout.js
src/chart/radar/radarLayout.js
+14
-16
src/component/axis/CartesianAxisView.js
src/component/axis/CartesianAxisView.js
+1
-1
src/echarts.js
src/echarts.js
+2
-0
src/layout/barPolar.js
src/layout/barPolar.js
+1
-3
src/model/Global.js
src/model/Global.js
+1
-1
test/graph-label-rotate.html
test/graph-label-rotate.html
+109
-0
未找到文件。
.eslintrc.yaml
浏览文件 @
f42e68e0
...
...
@@ -112,6 +112,9 @@ rules:
operator-linebreak
:
-
2
-
"
before"
-
overrides
:
"
="
:
"
after"
quotes
:
-
2
-
"
single"
...
...
dist/echarts-en.js
浏览文件 @
f42e68e0
...
...
@@ -74554,8 +74554,11 @@ function getAxisKey$1(axis) {
*/
function barLayoutPolar(seriesType, ecModel, api) {
// var width = api.getWidth();
// var height = api.getHeight();
// FIXME
// Revert becuase it brings bar progressive bug.
// The complete fix will be added in the next version.
var width = api.getWidth();
var height = api.getHeight();
var lastStackCoords = {};
dist/echarts-en.js.map
浏览文件 @
f42e68e0
此差异已折叠。
点击以展开。
dist/echarts-en.min.js
浏览文件 @
f42e68e0
此差异已折叠。
点击以展开。
dist/echarts.js
浏览文件 @
f42e68e0
...
...
@@ -74612,8 +74612,11 @@ function getAxisKey$1(axis) {
*/
function barLayoutPolar(seriesType, ecModel, api) {
// var width = api.getWidth();
// var height = api.getHeight();
// FIXME
// Revert becuase it brings bar progressive bug.
// The complete fix will be added in the next version.
var width = api.getWidth();
var height = api.getHeight();
var lastStackCoords = {};
dist/echarts.js.map
浏览文件 @
f42e68e0
此差异已折叠。
点击以展开。
dist/echarts.min.js
浏览文件 @
f42e68e0
此差异已折叠。
点击以展开。
dist/extension/dataTool.js
浏览文件 @
f42e68e0
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
(
function
(
global
,
factory
)
{
typeof
exports
===
'
object
'
&&
typeof
module
!==
'
undefined
'
?
factory
(
exports
,
require
(
'
echarts
'
))
:
typeof
define
===
'
function
'
&&
define
.
amd
?
define
([
'
exports
'
,
'
echarts
'
],
factory
)
:
...
...
package.json
浏览文件 @
f42e68e0
{
"name"
:
"echarts"
,
"version"
:
"4.2.0-rc.
1
"
,
"version"
:
"4.2.0-rc.
2
"
,
"description"
:
"A powerful charting and visualization library for browser"
,
"keywords"
:
[
"visualization"
,
...
...
src/chart/bar.js
浏览文件 @
f42e68e0
...
...
@@ -28,9 +28,10 @@ import './bar/BarView';
import
'
../component/gridSimple
'
;
echarts
.
registerLayout
(
zrUtil
.
curry
(
layout
,
'
bar
'
));
// Should after normal bar layout, otherwise it is blocked by normal bar layout.
echarts
.
registerLayout
(
largeLayout
);
echarts
.
registerLayout
(
echarts
.
PRIORITY
.
VISUAL
.
LAYOUT
,
zrUtil
.
curry
(
layout
,
'
bar
'
));
// Use higher prority to avoid to be blocked by other overall layout, which do not
// only exist in this module, but probably also exist in other modules, like `barPolar`.
echarts
.
registerLayout
(
echarts
.
PRIORITY
.
VISUAL
.
PROGRESSIVE_LAYOUT
,
largeLayout
);
echarts
.
registerVisual
({
seriesType
:
'
bar
'
,
...
...
src/chart/radar/radarLayout.js
浏览文件 @
f42e68e0
...
...
@@ -28,29 +28,27 @@ export default function (ecModel) {
return
;
}
function
pointsConverter
(
val
,
idx
)
{
points
[
idx
]
=
points
[
idx
]
||
[];
points
[
idx
][
i
]
=
coordSys
.
dataToPoint
(
val
,
i
);
}
var
axes
=
coordSys
.
getIndicatorAxes
();
for
(
var
i
=
0
;
i
<
axes
.
length
;
i
++
)
{
data
.
each
(
data
.
mapDimension
(
axes
[
i
].
dim
),
pointsConverter
);
}
zrUtil
.
each
(
axes
,
function
(
axis
,
axisIndex
)
{
data
.
each
(
data
.
mapDimension
(
axes
[
axisIndex
].
dim
),
function
(
val
,
dataIndex
)
{
points
[
dataIndex
]
=
points
[
dataIndex
]
||
[];
points
[
dataIndex
][
axisIndex
]
=
coordSys
.
dataToPoint
(
val
,
axisIndex
);
});
});
// Close polygon
data
.
each
(
function
(
idx
)
{
// Close polygon
// TODO
// Is it appropriate to connect to the next data when some data is missing?
// Or, should trade it like `connectNull` in line chart?
var
firstPoint
=
zrUtil
.
find
(
points
[
idx
],
function
(
point
)
{
return
!
isNaN
(
point
[
0
])
&&
!
isNaN
(
point
[
1
]);
})
||
[
NaN
,
NaN
];
var
firstPoint
=
findFirstActualPoint
();
// Copy the first actual point to the end of the array
points
[
idx
].
push
(
firstPoint
.
slice
());
data
.
setItemLayout
(
idx
,
points
[
idx
]);
function
findFirstActualPoint
()
{
return
zrUtil
.
find
(
points
[
idx
],
function
(
point
)
{
return
!
isNaN
(
point
[
0
])
&&
!
isNaN
(
point
[
1
]);
})
||
[
'
NaN
'
,
'
NaN
'
];
}
});
});
}
\ No newline at end of file
src/component/axis/CartesianAxisView.js
浏览文件 @
f42e68e0
...
...
@@ -118,7 +118,7 @@ var CartesianAxisView = AxisView.extend({
// Simple optimization
// Batching the lines if color are the same
var
lineStyle
=
lineStyleModel
.
getLineStyle
();
for
(
var
i
=
1
;
i
<
ticksCoords
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
ticksCoords
.
length
;
i
++
)
{
var
tickCoord
=
axis
.
toGlobalCoord
(
ticksCoords
[
i
].
coord
);
if
(
isHorizontal
)
{
...
...
src/echarts.js
浏览文件 @
f42e68e0
...
...
@@ -63,6 +63,7 @@ var PRIORITY_PROCESSOR_FILTER = 1000;
var
PRIORITY_PROCESSOR_STATISTIC
=
5000
;
var
PRIORITY_VISUAL_LAYOUT
=
1000
;
var
PRIORITY_VISUAL_PROGRESSIVE_LAYOUT
=
1100
;
var
PRIORITY_VISUAL_GLOBAL
=
2000
;
var
PRIORITY_VISUAL_CHART
=
3000
;
var
PRIORITY_VISUAL_COMPONENT
=
4000
;
...
...
@@ -77,6 +78,7 @@ export var PRIORITY = {
},
VISUAL
:
{
LAYOUT
:
PRIORITY_VISUAL_LAYOUT
,
PROGRESSIVE_LAYOUT
:
PRIORITY_VISUAL_PROGRESSIVE_LAYOUT
,
GLOBAL
:
PRIORITY_VISUAL_GLOBAL
,
CHART
:
PRIORITY_VISUAL_CHART
,
COMPONENT
:
PRIORITY_VISUAL_COMPONENT
,
...
...
src/layout/barPolar.js
浏览文件 @
f42e68e0
...
...
@@ -37,9 +37,6 @@ function getAxisKey(axis) {
*/
function
barLayoutPolar
(
seriesType
,
ecModel
,
api
)
{
// var width = api.getWidth();
// var height = api.getHeight();
var
lastStackCoords
=
{};
var
barWidthAndOffset
=
calRadialBar
(
...
...
@@ -54,6 +51,7 @@ function barLayoutPolar(seriesType, ecModel, api) {
);
ecModel
.
eachSeriesByType
(
seriesType
,
function
(
seriesModel
)
{
// Check series coordinate, do layout for polar only
if
(
seriesModel
.
coordinateSystem
.
type
!==
'
polar
'
)
{
return
;
...
...
src/model/Global.js
浏览文件 @
f42e68e0
...
...
@@ -546,7 +546,7 @@ var GlobalModel = Model.extend({
* After filtering, series may be different.
* frome raw series.
*
* @par
ma {string} subType
* @par
am {string} subType.
* @param {Function} cb
* @param {*} context
*/
...
...
test/graph-label-rotate.html
0 → 100644
浏览文件 @
f42e68e0
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta
charset=
"utf-8"
>
<script
src=
"lib/esl.js"
></script>
<script
src=
"lib/config.js"
></script>
<script
src=
"lib/jquery.min.js"
></script>
<script
src=
"lib/dat.gui.min.js"
></script>
</head>
<body>
<style>
html
,
body
,
#main
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
}
</style>
<div
id=
"main"
></div>
<script>
require
([
'
echarts
'
,
'
extension/dataTool
'
,
'
theme/vintage
'
],
function
(
echarts
,
dataTool
)
{
var
gexf
=
dataTool
.
gexf
;
var
chart
=
echarts
.
init
(
document
.
getElementById
(
'
main
'
),
'
vintage
'
,
{
});
var
option
=
{
title
:
{
text
:
'
Graph Label Rotate
'
},
tooltip
:
{},
animationDurationUpdate
:
1500
,
animationEasingUpdate
:
'
quinticInOut
'
,
series
:
[
{
type
:
'
graph
'
,
layout
:
'
none
'
,
symbolSize
:
50
,
roam
:
true
,
label
:
{
show
:
true
,
rotate
:
30
,
fontWeight
:
5
,
fontSize
:
26
,
color
:
"
#000
"
,
distance
:
15
,
position
:
'
inside
'
,
verticalAlign
:
'
middle
'
},
edgeSymbol
:
[
'
circle
'
,
'
arrow
'
],
edgeSymbolSize
:
[
4
,
10
],
edgeLabel
:
{
normal
:
{
textStyle
:
{
fontSize
:
20
}
}
},
data
:
[{
name
:
'
rotate 30
'
,
x
:
300
,
y
:
300
},
{
name
:
'
rotate 45
'
,
x
:
500
,
y
:
600
,
label
:
{
rotate
:
-
30
}
}],
emphasis
:
{
label
:
{
rotate
:
45
}
}
}
]
}
chart
.
setOption
(
option
);
});
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录