File tree 3 files changed +19
-2
lines changed 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -1503,6 +1503,12 @@ <h4>axis<a name="Axis"> </a><a name="CategoryAxis"> </a><a name="ValueAxis"> </a
1503
1503
< td > 数值型 </ td >
1504
1504
< td > 坐标轴名称位置,默认为'end',可选为:'start' | 'end'</ td >
1505
1505
</ tr >
1506
+ < tr >
1507
+ < td > < b > {Object}</ b > nameTextStyle </ td >
1508
+ < td > {} </ td >
1509
+ < td > 数值型 </ td >
1510
+ < td > 坐标轴名称文字样式,默认取全局配置,颜色跟随axisLine主色,可设</ td >
1511
+ </ tr >
1506
1512
< tr >
1507
1513
< td > < b > {Boolean}</ b > boundaryGap </ td >
1508
1514
< td > true </ td >
@@ -1771,7 +1777,7 @@ <h5>axis.splitLine<a name="AxisSplitline"> </a></h5>
1771
1777
< td > < b > {boolean}</ b > onGap </ td >
1772
1778
< td > null </ td >
1773
1779
< td > 类目型 </ td >
1774
- < td > 小标记是否显示为间隔 ,默认等于boundaryGap</ td >
1780
+ < td > 分隔线是否显示为间隔 ,默认等于boundaryGap</ td >
1775
1781
</ tr >
1776
1782
< tr >
1777
1783
< td > < b > {Object}</ b > lineStyle </ td >
@@ -1800,7 +1806,7 @@ <h5>axis.splitArea<a name="AxisSplitarea"> </a></h5>
1800
1806
< td > < b > {boolean}</ b > onGap </ td >
1801
1807
< td > null </ td >
1802
1808
< td > 类目型 </ td >
1803
- < td > 小标记是否显示为间隔 ,默认等于boundaryGap</ td >
1809
+ < td > 分隔区域是否显示为间隔 ,默认等于boundaryGap</ td >
1804
1810
</ tr >
1805
1811
< tr >
1806
1812
< td > < b > {Object}</ b > areaStyle </ td >
Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ define(function (require) {
96
96
if ( option . name !== '' ) {
97
97
axShape . style . text = option . name ;
98
98
axShape . style . textPosition = option . nameLocation ;
99
+ axShape . style . textFont = self . getFont ( option . nameTextStyle ) ;
100
+ if ( option . nameTextStyle . align ) {
101
+ axShape . style . textAlign = option . nameTextStyle . align ;
102
+ }
103
+ if ( option . nameTextStyle . baseline ) {
104
+ axShape . style . textBaseline = option . nameTextStyle . baseline ;
105
+ }
106
+ if ( option . nameTextStyle . color ) {
107
+ axShape . style . textColor = option . nameTextStyle . color ;
108
+ }
99
109
}
100
110
axShape . style . strokeColor = option . axisLine . lineStyle . color ;
101
111
Original file line number Diff line number Diff line change @@ -300,6 +300,7 @@ define(function() {
300
300
position : 'left' , // 位置
301
301
name : '' , // 坐标轴名字,默认为空
302
302
nameLocation : 'end' , // 坐标轴名字位置,支持'start' | 'end'
303
+ nameTextStyle : { } , // 坐标轴文字样式,默认取全局样式
303
304
boundaryGap : [ 0 , 0 ] , // 数值起始和结束两端空白策略
304
305
// min: null, // 最小值
305
306
// max: null, // 最大值
You can’t perform that action at this time.
0 commit comments