Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
279b90ef
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,发现更多精彩内容 >>
提交
279b90ef
编写于
12月 06, 2017
作者:
S
sushuang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
stream series color.
上级
869cd6f3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
7 deletion
+11
-7
src/chart/helper/StreamSymbolDraw.js
src/chart/helper/StreamSymbolDraw.js
+4
-3
src/stream/Scheduler.js
src/stream/Scheduler.js
+1
-1
src/visual/seriesColor.js
src/visual/seriesColor.js
+3
-1
test/geo-random-stream.html
test/geo-random-stream.html
+3
-2
未找到文件。
src/chart/helper/StreamSymbolDraw.js
浏览文件 @
279b90ef
...
...
@@ -29,8 +29,6 @@ symbolDrawProto.updateData = function (data, isIgnore) {
var
seriesModel
=
this
.
_seriesModel
=
data
.
hostModel
;
this
.
_isIgnore
=
isIgnore
;
this
.
root
.
clearDisplaybles
();
doRender
(
this
,
seriesModel
,
isIgnore
);
};
...
...
@@ -52,8 +50,11 @@ function doRender(self, seriesModel, isIgnore) {
cursorStyle
:
seriesModel
.
get
(
'
cursor
'
)
};
root
.
clearDisplaybles
();
var
dataEachTask
=
data
.
createEachTask
(
function
(
newIdx
)
{
var
point
=
data
.
getItemLayout
(
newIdx
);
var
color
=
data
.
getItemVisual
(
newIdx
,
'
color
'
);
if
(
symbolNeedsDraw
(
data
,
newIdx
,
isIgnore
))
{
// var symbolEl = new SymbolCtor(data, newIdx, seriesScope);
// symbolEl.attr('position', point);
...
...
@@ -66,7 +67,7 @@ function doRender(self, seriesModel, isIgnore) {
r
:
1
+
Math
.
random
()
*
1
},
style
:
{
fill
:
'
#121
'
,
fill
:
color
,
blend
:
'
lighter
'
},
position
:
point
...
...
src/stream/Scheduler.js
浏览文件 @
279b90ef
...
...
@@ -25,7 +25,7 @@ var TAG = {
updateViewBase
:
1
};
var
TEST_PROGRESS_STEP
=
3
00
;
var
TEST_PROGRESS_STEP
=
7
00
;
/**
* @constructor
...
...
src/visual/seriesColor.js
浏览文件 @
279b90ef
...
...
@@ -21,13 +21,15 @@ export default function (ecModel) {
}
// itemStyle in each data item
data
.
each
(
function
(
idx
)
{
var
task
=
data
.
createEachTask
(
function
(
idx
)
{
var
itemModel
=
data
.
getItemModel
(
idx
);
var
color
=
itemModel
.
get
(
colorAccessPath
,
true
);
if
(
color
!=
null
)
{
data
.
setItemVisual
(
idx
,
'
color
'
,
color
);
}
});
seriesModel
.
pipeTask
(
task
,
'
visual
'
);
}
}
ecModel
.
eachRawSeries
(
encodeColor
);
...
...
test/geo-random-stream.html
浏览文件 @
279b90ef
...
...
@@ -26,7 +26,7 @@
var
data
=
[];
// var count = 1000000;
// var count = 450000;
var
count
=
100000
;
var
count
=
100000
0
;
// var count = 5000;
for
(
var
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -95,7 +95,8 @@
borderWidth
:
0
,
shadowColor
:
'
rgba(0, 0, 0, 0.5)
'
}
}
},
z
:
0
},
series
:
[{
name
:
'
pm2.5
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录