Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
faf6a4b2
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,发现更多精彩内容 >>
提交
faf6a4b2
编写于
1月 27, 2014
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数值轴文字样式支持
上级
4e1be3eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
2 deletion
+19
-2
doc/doc.html
doc/doc.html
+8
-2
src/component/valueAxis.js
src/component/valueAxis.js
+10
-0
src/config.js
src/config.js
+1
-0
未找到文件。
doc/doc.html
浏览文件 @
faf6a4b2
...
...
@@ -1503,6 +1503,12 @@ feature : {
<td>
数值型
</td>
<td>
坐标轴名称位置,默认为'end',可选为:'start' | 'end'
</td>
</tr>
<tr>
<td>
<b>
{Object}
</b>
nameTextStyle
</td>
<td>
{}
</td>
<td>
数值型
</td>
<td>
坐标轴名称文字样式,默认取全局配置,颜色跟随axisLine主色,可设
</td>
</tr>
<tr>
<td>
<b>
{Boolean}
</b>
boundaryGap
</td>
<td>
true
</td>
...
...
@@ -1771,7 +1777,7 @@ feature : {
<td>
<b>
{boolean}
</b>
onGap
</td>
<td>
null
</td>
<td>
类目型
</td>
<td>
小标记
是否显示为间隔,默认等于boundaryGap
</td>
<td>
分隔线
是否显示为间隔,默认等于boundaryGap
</td>
</tr>
<tr>
<td>
<b>
{Object}
</b>
lineStyle
</td>
...
...
@@ -1800,7 +1806,7 @@ feature : {
<td>
<b>
{boolean}
</b>
onGap
</td>
<td>
null
</td>
<td>
类目型
</td>
<td>
小标记
是否显示为间隔,默认等于boundaryGap
</td>
<td>
分隔区域
是否显示为间隔,默认等于boundaryGap
</td>
</tr>
<tr>
<td>
<b>
{Object}
</b>
areaStyle
</td>
...
...
src/component/valueAxis.js
浏览文件 @
faf6a4b2
...
...
@@ -96,6 +96,16 @@ define(function (require) {
if
(
option
.
name
!==
''
)
{
axShape
.
style
.
text
=
option
.
name
;
axShape
.
style
.
textPosition
=
option
.
nameLocation
;
axShape
.
style
.
textFont
=
self
.
getFont
(
option
.
nameTextStyle
);
if
(
option
.
nameTextStyle
.
align
)
{
axShape
.
style
.
textAlign
=
option
.
nameTextStyle
.
align
;
}
if
(
option
.
nameTextStyle
.
baseline
)
{
axShape
.
style
.
textBaseline
=
option
.
nameTextStyle
.
baseline
;
}
if
(
option
.
nameTextStyle
.
color
)
{
axShape
.
style
.
textColor
=
option
.
nameTextStyle
.
color
;
}
}
axShape
.
style
.
strokeColor
=
option
.
axisLine
.
lineStyle
.
color
;
...
...
src/config.js
浏览文件 @
faf6a4b2
...
...
@@ -300,6 +300,7 @@ define(function() {
position
:
'
left
'
,
// 位置
name
:
''
,
// 坐标轴名字,默认为空
nameLocation
:
'
end
'
,
// 坐标轴名字位置,支持'start' | 'end'
nameTextStyle
:
{},
// 坐标轴文字样式,默认取全局样式
boundaryGap
:
[
0
,
0
],
// 数值起始和结束两端空白策略
// min: null, // 最小值
// max: null, // 最大值
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录