Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
4895ec93
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,发现更多精彩内容 >>
提交
4895ec93
编写于
9月 01, 2014
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
柱形itemStyle改造,属性冲突 fixed #662
上级
99d070a2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
43 addition
and
31 deletion
+43
-31
doc/doc.html
doc/doc.html
+19
-7
doc/example/theme/infographic.js
doc/example/theme/infographic.js
+2
-2
doc/example/theme/macarons.js
doc/example/theme/macarons.js
+2
-2
doc/example/themeDesigner.html
doc/example/themeDesigner.html
+6
-6
src/chart/bar.js
src/chart/bar.js
+8
-8
src/config.js
src/config.js
+6
-6
未找到文件。
doc/doc.html
浏览文件 @
4895ec93
...
...
@@ -3553,21 +3553,33 @@ geoCoord : {
</tr>
<tr>
<td>
<b>
{string}
</b>
borderColor
</td>
<td>
各异
</td>
<td>
折线图(symbol),散点图(symbole),饼图,markPoint
</td>
<td>
边框颜色
</td>
</tr>
<tr>
<td>
<b>
{number}
</b>
borderWidth
</td>
<td>
各异
</td>
<td>
折线图(symbol),散点图(symbole),饼图,markPoint
</td>
<td>
边框线宽,单位px
</td>
</tr>
<tr>
<td>
<b>
{string}
</b>
barBorderColor
</td>
<td>
'#fff'
</td>
<td>
柱形图
,折线图(symbol),散点图(symbole),饼图,markPoint
</td>
<td>
柱形
边框颜色
</td>
<td>
柱形图
</td>
<td>
边框颜色
</td>
</tr>
<tr>
<td>
<b>
{number}
</b>
borderRadius
</td>
<td>
<b>
{number}
</b>
b
arB
orderRadius
</td>
<td>
0
</td>
<td>
柱形图
</td>
<td>
柱形边框圆角,单位px,默认为0
</td>
</tr>
<tr>
<td>
<b>
{number}
</b>
borderWidth
</td>
<td>
1
</td>
<td>
柱形图
,折线图(symbol),散点图(symbole),饼图,markPoint
</td>
<td>
柱形边框线宽,单位px,默认为
1
</td>
<td>
<b>
{number}
</b>
b
arB
orderWidth
</td>
<td>
0
</td>
<td>
柱形图
</td>
<td>
柱形边框线宽,单位px,默认为
0
</td>
</tr>
<tr>
<td>
<b>
{Object}
</b>
label
</td>
...
...
doc/example/theme/infographic.js
浏览文件 @
4895ec93
...
...
@@ -134,10 +134,10 @@ var theme = {
bar
:
{
itemStyle
:
{
normal
:
{
borderRadius
:
0
b
arB
orderRadius
:
0
},
emphasis
:
{
borderRadius
:
0
b
arB
orderRadius
:
0
}
}
},
...
...
doc/example/theme/macarons.js
浏览文件 @
4895ec93
...
...
@@ -134,10 +134,10 @@ var theme = {
bar
:
{
itemStyle
:
{
normal
:
{
borderRadius
:
5
b
arB
orderRadius
:
5
},
emphasis
:
{
borderRadius
:
5
b
arB
orderRadius
:
5
}
}
},
...
...
doc/example/themeDesigner.html
浏览文件 @
4895ec93
...
...
@@ -503,9 +503,9 @@ theme = {
itemStyle: {
normal: {
// color: '各异',
borderColor: '#fff', // 柱条边线
borderRadius: 0, // 柱条边线圆角,单位px,默认为0
borderWidth: 1, // 柱条边线线宽,单位px,默认为1
b
arB
orderColor: '#fff', // 柱条边线
b
arB
orderRadius: 0, // 柱条边线圆角,单位px,默认为0
b
arB
orderWidth: 1, // 柱条边线线宽,单位px,默认为1
label: {
show: false
// position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
...
...
@@ -515,9 +515,9 @@ theme = {
},
emphasis: {
// color: '各异',
borderColor: 'rgba(0,0,0,0)', // 柱条边线
borderRadius: 0, // 柱条边线圆角,单位px,默认为0
borderWidth: 1, // 柱条边线线宽,单位px,默认为1
b
arB
orderColor: 'rgba(0,0,0,0)', // 柱条边线
b
arB
orderRadius: 0, // 柱条边线圆角,单位px,默认为0
b
arB
orderWidth: 1, // 柱条边线线宽,单位px,默认为1
label: {
show: false
// position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
...
...
src/chart/bar.js
浏览文件 @
4895ec93
...
...
@@ -144,14 +144,14 @@ define(function (require) {
iconShape
=
legend
.
getItemShape
(
serieName
);
if
(
iconShape
)
{
// 回调legend,换一个更形象的icon
if
(
serie
.
itemStyle
.
normal
.
borderWidth
>
0
)
{
if
(
serie
.
itemStyle
.
normal
.
b
arB
orderWidth
>
0
)
{
iconShape
.
style
.
x
+=
1
;
iconShape
.
style
.
y
+=
1
;
iconShape
.
style
.
width
-=
2
;
iconShape
.
style
.
height
-=
2
;
iconShape
.
style
.
strokeColor
=
iconShape
.
highlightStyle
.
strokeColor
=
serie
.
itemStyle
.
normal
.
borderColor
;
serie
.
itemStyle
.
normal
.
b
arB
orderColor
;
iconShape
.
highlightStyle
.
lineWidth
=
3
;
iconShape
.
style
.
brushType
=
'
both
'
;
}
...
...
@@ -795,7 +795,7 @@ define(function (require) {
queryTarget
,
'
itemStyle.normal
'
);
var
normalBorderWidth
=
normal
.
borderWidth
;
var
normalBorderWidth
=
normal
.
b
arB
orderWidth
;
var
emphasis
=
this
.
deepMerge
(
queryTarget
,
'
itemStyle.emphasis
'
...
...
@@ -810,15 +810,15 @@ define(function (require) {
height
:
height
,
brushType
:
'
both
'
,
color
:
this
.
getItemStyleColor
(
normalColor
,
seriesIndex
,
dataIndex
,
data
),
radius
:
normal
.
borderRadius
,
radius
:
normal
.
b
arB
orderRadius
,
lineWidth
:
normalBorderWidth
,
strokeColor
:
normal
.
borderColor
strokeColor
:
normal
.
b
arB
orderColor
},
highlightStyle
:
{
color
:
this
.
getItemStyleColor
(
emphasisColor
,
seriesIndex
,
dataIndex
,
data
),
radius
:
emphasis
.
borderRadius
,
lineWidth
:
emphasis
.
borderWidth
,
strokeColor
:
emphasis
.
borderColor
radius
:
emphasis
.
b
arB
orderRadius
,
lineWidth
:
emphasis
.
b
arB
orderWidth
,
strokeColor
:
emphasis
.
b
arB
orderColor
},
_orient
:
orient
};
...
...
src/config.js
浏览文件 @
4895ec93
...
...
@@ -514,9 +514,9 @@ define(function() {
itemStyle
:
{
normal
:
{
// color: '各异',
borderColor
:
'
#fff
'
,
// 柱条边线
borderRadius
:
0
,
// 柱条边线圆角,单位px,默认为0
borderWidth
:
0
,
// 柱条边线线宽,单位px,默认为1
b
arB
orderColor
:
'
#fff
'
,
// 柱条边线
b
arB
orderRadius
:
0
,
// 柱条边线圆角,单位px,默认为0
b
arB
orderWidth
:
0
,
// 柱条边线线宽,单位px,默认为1
label
:
{
show
:
false
// formatter: 标签文本格式器,同Tooltip.formatter,不支持回调
...
...
@@ -527,9 +527,9 @@ define(function() {
},
emphasis
:
{
// color: '各异',
borderColor
:
'
#fff
'
,
// 柱条边线
borderRadius
:
0
,
// 柱条边线圆角,单位px,默认为0
borderWidth
:
0
,
// 柱条边线线宽,单位px,默认为1
b
arB
orderColor
:
'
#fff
'
,
// 柱条边线
b
arB
orderRadius
:
0
,
// 柱条边线圆角,单位px,默认为0
b
arB
orderWidth
:
0
,
// 柱条边线线宽,单位px,默认为1
label
:
{
show
:
false
// formatter: 标签文本格式器,同Tooltip.formatter,不支持回调
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录