Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
alon@wen
echarts
提交
ce0fffab
E
echarts
项目概览
alon@wen
/
echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce0fffab
编写于
9月 21, 2019
作者:
Y
yufeng04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug #7340
上级
4f216655
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
504 addition
and
11 deletion
+504
-11
src/component/legend/LegendModel.js
src/component/legend/LegendModel.js
+8
-0
src/component/legend/LegendView.js
src/component/legend/LegendView.js
+41
-8
src/model/Series.js
src/model/Series.js
+5
-0
src/model/mixin/dataFormat.js
src/model/mixin/dataFormat.js
+2
-0
src/visual/dataColor.js
src/visual/dataColor.js
+25
-3
src/visual/seriesColor.js
src/visual/seriesColor.js
+21
-0
test/lengend-borderColor.html
test/lengend-borderColor.html
+402
-0
未找到文件。
src/component/legend/LegendModel.js
浏览文件 @
ce0fffab
...
...
@@ -283,6 +283,14 @@ var LegendModel = echarts.extendComponentModel({
// 图例关闭时候的颜色
inactiveColor
:
'
#ccc
'
,
// 图例关闭时候的颜色
inactiveBorderColor
:
'
#ccc
'
,
itemStyle
:
{
// 图例默认无边框
borderWidth
:
0
},
textStyle
:
{
// 图例文字颜色
color
:
'
#333
'
...
...
src/component/legend/LegendView.js
浏览文件 @
ce0fffab
...
...
@@ -179,6 +179,7 @@ export default echarts.extendComponentView({
if
(
seriesModel
)
{
var
data
=
seriesModel
.
getData
();
var
color
=
data
.
getVisual
(
'
color
'
);
var
borderColor
=
data
.
getVisual
(
'
borderColor
'
);
// If color is a callback function
if
(
typeof
color
===
'
function
'
)
{
...
...
@@ -186,6 +187,12 @@ export default echarts.extendComponentView({
color
=
color
(
seriesModel
.
getDataParams
(
0
));
}
// If borderColor is a callback function
if
(
typeof
borderColor
===
'
function
'
)
{
// Use the first data
borderColor
=
borderColor
(
seriesModel
.
getDataParams
(
0
));
}
// Using rect symbol defaultly
var
legendSymbolType
=
data
.
getVisual
(
'
legendSymbol
'
)
||
'
roundRect
'
;
var
symbolType
=
data
.
getVisual
(
'
symbol
'
);
...
...
@@ -193,7 +200,7 @@ export default echarts.extendComponentView({
var
itemGroup
=
this
.
_createItem
(
name
,
dataIndex
,
itemModel
,
legendModel
,
legendSymbolType
,
symbolType
,
itemAlign
,
color
,
itemAlign
,
color
,
borderColor
,
selectMode
);
...
...
@@ -219,13 +226,14 @@ export default echarts.extendComponentView({
}
var
color
=
data
.
getItemVisual
(
idx
,
'
color
'
);
var
borderColor
=
data
.
getItemVisual
(
idx
,
'
borderColor
'
);
var
legendSymbolType
=
'
roundRect
'
;
var
itemGroup
=
this
.
_createItem
(
name
,
dataIndex
,
itemModel
,
legendModel
,
legendSymbolType
,
null
,
itemAlign
,
color
,
itemAlign
,
color
,
borderColor
,
selectMode
);
...
...
@@ -299,12 +307,14 @@ export default echarts.extendComponentView({
_createItem
:
function
(
name
,
dataIndex
,
itemModel
,
legendModel
,
legendSymbolType
,
symbolType
,
itemAlign
,
color
,
selectMode
itemAlign
,
color
,
borderColor
,
selectMode
)
{
var
itemWidth
=
legendModel
.
get
(
'
itemWidth
'
);
var
itemHeight
=
legendModel
.
get
(
'
itemHeight
'
);
var
inactiveColor
=
legendModel
.
get
(
'
inactiveColor
'
);
var
inactiveBorderColor
=
legendModel
.
get
(
'
inactiveBorderColor
'
);
var
symbolKeepAspect
=
legendModel
.
get
(
'
symbolKeepAspect
'
);
var
itemStyle
=
legendModel
.
getModel
(
'
itemStyle
'
).
getItemStyle
();
var
isSelected
=
legendModel
.
isSelected
(
name
);
var
itemGroup
=
new
Group
();
...
...
@@ -318,7 +328,7 @@ export default echarts.extendComponentView({
// Use user given icon first
legendSymbolType
=
itemIcon
||
legendSymbolType
;
itemGroup
.
add
(
createSymbol
(
var
legendSymbol
=
createSymbol
(
legendSymbolType
,
0
,
0
,
...
...
@@ -327,7 +337,13 @@ export default echarts.extendComponentView({
isSelected
?
color
:
inactiveColor
,
// symbolKeepAspect default true for legend
symbolKeepAspect
==
null
?
true
:
symbolKeepAspect
));
);
itemGroup
.
add
(
setSympleStyle
(
legendSymbol
,
legendSymbolType
,
itemStyle
,
borderColor
,
inactiveBorderColor
,
isSelected
)
);
// Compose symbols
// PENDING
...
...
@@ -339,8 +355,7 @@ export default echarts.extendComponentView({
if
(
symbolType
===
'
none
'
)
{
symbolType
=
'
circle
'
;
}
// Put symbol in the center
itemGroup
.
add
(
createSymbol
(
var
legendSymbolCenter
=
createSymbol
(
symbolType
,
(
itemWidth
-
size
)
/
2
,
(
itemHeight
-
size
)
/
2
,
...
...
@@ -349,7 +364,14 @@ export default echarts.extendComponentView({
isSelected
?
color
:
inactiveColor
,
// symbolKeepAspect default true for legend
symbolKeepAspect
==
null
?
true
:
symbolKeepAspect
));
);
// Put symbol in the center
itemGroup
.
add
(
setSympleStyle
(
legendSymbolCenter
,
symbolType
,
itemStyle
,
borderColor
,
inactiveBorderColor
,
isSelected
)
);
}
var
textX
=
itemAlign
===
'
left
'
?
itemWidth
+
5
:
-
5
;
...
...
@@ -481,6 +503,17 @@ export default echarts.extendComponentView({
});
function
setSympleStyle
(
symbol
,
symbolType
,
itemStyle
,
borderColor
,
inactiveBorderColor
,
isSelected
)
{
if
(
symbolType
!==
'
line
'
&&
symbolType
.
indexOf
(
'
empty
'
)
<
0
)
{
symbol
.
style
.
stroke
=
borderColor
;
if
(
!
isSelected
)
{
itemStyle
.
stroke
=
inactiveBorderColor
;
}
symbol
.
setStyle
(
itemStyle
);
}
return
symbol
;
}
function
dispatchSelectAction
(
name
,
api
)
{
api
.
dispatchAction
({
type
:
'
legendToggleSelect
'
,
...
...
src/model/Series.js
浏览文件 @
ce0fffab
...
...
@@ -73,6 +73,11 @@ var SeriesModel = ComponentModel.extend({
*/
visualColorAccessPath
:
'
itemStyle.color
'
,
/**
* Access path of borderColor for visual
*/
visualBorderColorAccessPath
:
'
itemStyle.borderColor
'
,
/**
* Support merge layout params.
* Only support 'box' now (left/right/top/bottom/width/height).
...
...
src/model/mixin/dataFormat.js
浏览文件 @
ce0fffab
...
...
@@ -38,6 +38,7 @@ export default {
var
name
=
data
.
getName
(
dataIndex
);
var
itemOpt
=
data
.
getRawDataItem
(
dataIndex
);
var
color
=
data
.
getItemVisual
(
dataIndex
,
'
color
'
);
var
borderColor
=
data
.
getItemVisual
(
dataIndex
,
'
borderColor
'
);
var
tooltipModel
=
this
.
ecModel
.
getComponent
(
'
tooltip
'
);
var
renderModeOption
=
tooltipModel
&&
tooltipModel
.
get
(
'
renderMode
'
);
var
renderMode
=
getTooltipRenderMode
(
renderModeOption
);
...
...
@@ -59,6 +60,7 @@ export default {
dataType
:
dataType
,
value
:
rawValue
,
color
:
color
,
borderColor
:
borderColor
,
dimensionNames
:
userOutput
?
userOutput
.
dimensionNames
:
null
,
encode
:
userOutput
?
userOutput
.
encode
:
null
,
marker
:
getTooltipMarker
({
...
...
src/visual/dataColor.js
浏览文件 @
ce0fffab
...
...
@@ -53,10 +53,13 @@ export default function (seriesType) {
var
singleDataColor
=
filteredIdx
!=
null
&&
data
.
getItemVisual
(
filteredIdx
,
'
color
'
,
true
);
if
(
!
singleDataColor
)
{
// FIXME Performance
var
itemModel
=
dataAll
.
getItemModel
(
rawIdx
);
var
singleDataBorderColor
=
filteredIdx
!=
null
&&
data
.
getItemVisual
(
filteredIdx
,
'
borderColor
'
,
true
);
// FIXME Performance
var
itemModel
=
dataAll
.
getItemModel
(
rawIdx
);
if
(
!
singleDataColor
)
{
var
color
=
itemModel
.
get
(
'
itemStyle.color
'
)
||
seriesModel
.
getColorFromPalette
(
dataAll
.
getName
(
rawIdx
)
||
(
rawIdx
+
''
),
seriesModel
.
__paletteScope
,
...
...
@@ -74,6 +77,25 @@ export default function (seriesType) {
// Set data all color for legend
dataAll
.
setItemVisual
(
rawIdx
,
'
color
'
,
singleDataColor
);
}
if
(
!
singleDataBorderColor
)
{
var
borderColor
=
itemModel
.
get
(
'
itemStyle.borderColor
'
)
||
seriesModel
.
getColorFromPalette
(
dataAll
.
getName
(
rawIdx
)
||
(
rawIdx
+
''
),
seriesModel
.
__paletteScope
,
dataAll
.
count
()
);
// Legend may use the visual info in data before processed
dataAll
.
setItemVisual
(
rawIdx
,
'
borderColor
'
,
borderColor
);
// Data is not filtered
if
(
filteredIdx
!=
null
)
{
data
.
setItemVisual
(
filteredIdx
,
'
borderColor
'
,
borderColor
);
}
}
else
{
// Set data all borderColor for legend
dataAll
.
setItemVisual
(
rawIdx
,
'
borderColor
'
,
singleDataBorderColor
);
}
});
}
};
...
...
src/visual/seriesColor.js
浏览文件 @
ce0fffab
...
...
@@ -33,6 +33,15 @@ export default {
// FIXME Set color function or use the platte color
data
.
setVisual
(
'
color
'
,
color
);
var
borderColorAccessPath
=
(
seriesModel
.
visualBorderColorAccessPath
||
'
itemStyle.borderColor
'
).
split
(
'
.
'
);
var
borderColor
=
seriesModel
.
get
(
borderColorAccessPath
)
// Set in itemStyle
||
seriesModel
.
getColorFromPalette
(
// TODO series count changed.
seriesModel
.
name
,
null
,
ecModel
.
getSeriesCount
()
);
// Default borderColor
// FIXME Set borderColor function or use the platte borderColor
data
.
setVisual
(
'
borderColor
'
,
borderColor
);
// Only visible series has each data be visual encoded
if
(
!
ecModel
.
isSeriesFiltered
(
seriesModel
))
{
...
...
@@ -44,13 +53,25 @@ export default {
});
}
if
(
typeof
borderColor
===
'
function
'
&&
!
(
borderColor
instanceof
Gradient
))
{
data
.
each
(
function
(
idx
)
{
data
.
setItemVisual
(
idx
,
'
borderColor
'
,
borderColor
(
seriesModel
.
getDataParams
(
idx
))
);
});
}
// itemStyle in each data item
var
dataEach
=
function
(
data
,
idx
)
{
var
itemModel
=
data
.
getItemModel
(
idx
);
var
color
=
itemModel
.
get
(
colorAccessPath
,
true
);
var
borderColor
=
itemModel
.
get
(
borderColorAccessPath
,
true
);
if
(
color
!=
null
)
{
data
.
setItemVisual
(
idx
,
'
color
'
,
color
);
}
if
(
borderColor
!=
null
)
{
data
.
setItemVisual
(
idx
,
'
borderColor
'
,
borderColor
);
}
};
return
{
dataEach
:
data
.
hasItemOption
?
dataEach
:
null
};
...
...
test/lengend-borderColor.html
0 → 100644
浏览文件 @
ce0fffab
<!--
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>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
</head>
<body>
<style>
h1
{
line-height
:
60px
;
height
:
60px
;
background
:
#146402
;
text-align
:
center
;
font-weight
:
bold
;
color
:
#eee
;
font-size
:
14px
;
}
.chart
{
height
:
300px
;
}
</style>
<h1>
The line in legend symble should be default value and the borderWidth of legend symble should be legend.itemSyle.borderWidth
</h1>
<div
class=
"chart"
id=
"plain"
></div>
<h1>
The style with legend symble should be series[i].itemStyle
</h1>
<div
class=
"chart"
id=
"plain1"
></div>
<h1>
The style with legend symble should be legend.itemStyle
</h1>
<div
class=
"chart"
id=
"plain2"
></div>
<script>
require
([
'
echarts
'
// 'echarts/util/graphic',
// 'echarts/chart/line',
// 'echarts/component/legend',
// 'echarts/component/grid',
// 'echarts/component/tooltip'
],
function
(
echarts
)
{
var
graphic
=
echarts
.
graphic
;
var
chart
=
echarts
.
init
(
document
.
getElementById
(
'
plain
'
),
null
,
{
});
var
option
=
{
tooltip
:
{
trigger
:
'
axis
'
,
axisPointer
:
{
type
:
'
cross
'
,
label
:
{
backgroundColor
:
'
#6a7985
'
}
}
},
legend
:
{
data
:
[
'
邮件营销
'
,
'
联盟广告
'
,
'
视频广告
'
,
'
直接访问
'
,
'
搜索引擎
'
],
itemStyle
:
{
// borderColor: '#f00',
borderWidth
:
3
}
},
toolbox
:
{
feature
:
{
saveAsImage
:
{}
}
},
grid
:
{
left
:
'
3%
'
,
right
:
'
4%
'
,
bottom
:
'
3%
'
,
containLabel
:
true
},
xAxis
:
[
{
type
:
'
category
'
,
boundaryGap
:
false
,
data
:
[
'
周一
'
,
'
周二
'
,
'
周三
'
,
'
周四
'
,
'
周五
'
,
'
周六
'
,
'
周日
'
]
}
],
yAxis
:
[
{
type
:
'
value
'
}
],
series
:
[
{
name
:
'
邮件营销
'
,
type
:
'
line
'
,
stack
:
'
总量
'
,
areaStyle
:
{},
// default emptyCircle
// symbol: 'circle',
itemStyle
:
{
borderColor
:
'
#096
'
,
borderWidth
:
1
},
data
:
[
120
,
132
,
101
,
134
,
90
,
230
,
210
]
},
{
name
:
'
联盟广告
'
,
type
:
'
line
'
,
stack
:
'
总量
'
,
areaStyle
:
{},
symbol
:
'
circle
'
,
itemStyle
:
{
borderColor
:
'
#ffde33
'
,
borderWidth
:
1
},
data
:
[
220
,
182
,
191
,
234
,
290
,
330
,
310
]
},
{
name
:
'
视频广告
'
,
type
:
'
line
'
,
stack
:
'
总量
'
,
areaStyle
:
{},
symbol
:
'
rect
'
,
itemStyle
:
{
borderColor
:
'
#ff9933
'
,
borderWidth
:
2
},
data
:
[
150
,
232
,
201
,
154
,
190
,
330
,
410
]
},
{
name
:
'
直接访问
'
,
type
:
'
line
'
,
stack
:
'
总量
'
,
areaStyle
:
{
normal
:
{}
},
symbol
:
'
roundRect
'
,
itemStyle
:
{
borderColor
:
'
#cc0033
'
,
borderWidth
:
3
},
data
:
[
320
,
332
,
301
,
334
,
390
,
330
,
320
]
},
{
name
:
'
搜索引擎
'
,
type
:
'
line
'
,
stack
:
'
总量
'
,
label
:
{
normal
:
{
show
:
true
,
position
:
'
top
'
}
},
areaStyle
:
{
normal
:
{}
},
symbol
:
'
triangle
'
,
itemStyle
:
{
borderColor
:
'
#660099
'
,
borderWidth
:
4
},
data
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
]
}
]
};
chart
.
setOption
(
option
);
var
chart1
=
echarts
.
init
(
document
.
getElementById
(
'
plain1
'
),
null
,
{});
var
option1
=
{
tooltip
:
{
trigger
:
'
axis
'
,
axisPointer
:
{
// 坐标轴指示器,坐标轴触发有效
type
:
'
shadow
'
// 默认为直线,可选为:'line' | 'shadow'
}
},
legend
:
{
data
:
[
'
直接访问
'
,
'
邮件营销
'
,
'
联盟广告
'
,
'
视频广告
'
,
'
搜索引擎
'
,
'
百度
'
,
'
谷歌
'
,
'
必应
'
,
'
其他
'
],
itemStyle
:
{
borderWidth
:
3
}
},
grid
:
{
left
:
'
3%
'
,
right
:
'
4%
'
,
bottom
:
'
3%
'
,
containLabel
:
true
},
xAxis
:
[
{
type
:
'
category
'
,
data
:
[
'
周一
'
,
'
周二
'
,
'
周三
'
,
'
周四
'
,
'
周五
'
,
'
周六
'
,
'
周日
'
]
}
],
yAxis
:
[
{
type
:
'
value
'
}
],
series
:
[
{
name
:
'
直接访问
'
,
type
:
'
bar
'
,
data
:
[
320
,
332
,
301
,
334
,
390
,
330
,
320
],
itemStyle
:
{
borderColor
:
'
#000
'
,
borderWidth
:
3
}
},
{
name
:
'
邮件营销
'
,
type
:
'
bar
'
,
stack
:
'
广告
'
,
data
:
[
120
,
132
,
101
,
134
,
90
,
230
,
210
],
itemStyle
:
{
borderColor
:
'
#f00
'
,
borderWidth
:
0
}
},
{
name
:
'
联盟广告
'
,
type
:
'
bar
'
,
stack
:
'
广告
'
,
data
:
[
220
,
182
,
191
,
234
,
290
,
330
,
310
]
},
{
name
:
'
视频广告
'
,
type
:
'
bar
'
,
stack
:
'
广告
'
,
data
:
[
150
,
232
,
201
,
154
,
190
,
330
,
410
]
},
{
name
:
'
搜索引擎
'
,
type
:
'
bar
'
,
data
:
[
862
,
1018
,
964
,
1026
,
1679
,
1600
,
1570
],
markLine
:
{
lineStyle
:
{
normal
:
{
type
:
'
dashed
'
}
},
data
:
[
[{
type
:
'
min
'
},
{
type
:
'
max
'
}]
]
}
},
{
name
:
'
百度
'
,
type
:
'
bar
'
,
barWidth
:
5
,
stack
:
'
搜索引擎
'
,
data
:
[
620
,
732
,
701
,
734
,
1090
,
1130
,
1120
]
},
{
name
:
'
谷歌
'
,
type
:
'
bar
'
,
stack
:
'
搜索引擎
'
,
data
:
[
120
,
132
,
101
,
134
,
290
,
230
,
220
]
},
{
name
:
'
必应
'
,
type
:
'
bar
'
,
stack
:
'
搜索引擎
'
,
data
:
[
60
,
72
,
71
,
74
,
190
,
130
,
110
]
},
{
name
:
'
其他
'
,
type
:
'
bar
'
,
stack
:
'
搜索引擎
'
,
data
:
[
62
,
82
,
91
,
84
,
109
,
110
,
120
]
}
]
};
chart1
.
setOption
(
option1
);
var
chart2
=
echarts
.
init
(
document
.
getElementById
(
'
plain2
'
),
null
,
{});
var
option2
=
{
tooltip
:
{
trigger
:
'
item
'
,
formatter
:
"
{a} <br/>{b}: {c} ({d}%)
"
},
legend
:
{
orient
:
'
vertical
'
,
x
:
'
left
'
,
data
:
[
'
直达
'
,
'
营销广告
'
,
'
搜索引擎
'
,
'
邮件营销
'
,
'
联盟广告
'
,
'
视频广告
'
,
'
百度
'
,
'
谷歌
'
,
'
必应
'
,
'
其他
'
],
itemStyle
:
{
borderWidth
:
3
,
borderColor
:
'
#f00
'
}
},
series
:
[
{
name
:
'
访问来源
'
,
type
:
'
pie
'
,
selectedMode
:
'
single
'
,
radius
:
[
0
,
'
30%
'
],
label
:
{
normal
:
{
position
:
'
inner
'
}
},
itemStyle
:
{
borderColor
:
'
#ff9933
'
,
borderWidth
:
2
},
labelLine
:
{
normal
:
{
show
:
false
}
},
data
:
[
{
value
:
335
,
name
:
'
直达
'
,
selected
:
true
},
{
value
:
679
,
name
:
'
营销广告
'
},
{
value
:
1548
,
name
:
'
搜索引擎
'
}
]
},
{
name
:
'
访问来源
'
,
type
:
'
pie
'
,
radius
:
[
'
40%
'
,
'
55%
'
],
label
:
{
normal
:
{
formatter
:
'
{a|{a}}{abg|}
\n
{hr|}
\n
{b|{b}:}{c} {per|{d}%}
'
,
backgroundColor
:
'
#eee
'
,
borderColor
:
'
#aaa
'
,
borderWidth
:
1
,
borderRadius
:
4
,
// shadowBlur:3,
// shadowOffsetX: 2,
// shadowOffsetY: 2,
// shadowColor: '#999',
// padding: [0, 7],
rich
:
{
a
:
{
color
:
'
#999
'
,
lineHeight
:
22
,
align
:
'
center
'
},
// abg: {
// backgroundColor: '#333',
// width: '100%',
// align: 'right',
// height: 22,
// borderRadius: [4, 4, 0, 0]
// },
hr
:
{
borderColor
:
'
#aaa
'
,
width
:
'
100%
'
,
borderWidth
:
0.5
,
height
:
0
},
b
:
{
fontSize
:
16
,
lineHeight
:
33
},
per
:
{
color
:
'
#eee
'
,
backgroundColor
:
'
#334455
'
,
padding
:
[
2
,
4
],
borderRadius
:
2
}
}
}
},
itemStyle
:
{
borderColor
:
'
#660099
'
,
borderWidth
:
4
},
data
:
[
{
value
:
335
,
name
:
'
直达
'
},
{
value
:
310
,
name
:
'
邮件营销
'
},
{
value
:
234
,
name
:
'
联盟广告
'
},
{
value
:
135
,
name
:
'
视频广告
'
},
{
value
:
1048
,
name
:
'
百度
'
},
{
value
:
251
,
name
:
'
谷歌
'
},
{
value
:
147
,
name
:
'
必应
'
},
{
value
:
102
,
name
:
'
其他
'
}
]
}
]
};
chart2
.
setOption
(
option2
);
});
</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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录