您的位置:首页 > 其它

ECharts学习之基础(二)title之属性

2018-04-26 17:09 471 查看

show:true/false,
link:'http://www/baidu.com',  //链接到的地址;
target:'self/blank', 
text:'content',      //可包含\n换行;
textStyle:{
        color:' ',
        fontStyle:'normal/italic/oblique',
        fontWeight:'normal/bold/bolder/lighter',
        fontFamily:'  ',
        fontSize:20,
        textBorderColor:'###',
        textBorderWidth:10,
        textShadowColor:'###', //默认为transparent;
        textShadowBlur:10,
        textShadowOffsetX:5,
        textShadowOffsetY:5,
        rich:{


        

        }

},
subtext:'###',   //副标题文本支持\n换行;
sublink:'###'    //副标题链接;
subtarget:'self/blank',
subtextStyle:{ 其中内容与textStyle 同 },
padding:[1,2,3,4],         //标题内边距  一个值时就单独一个number;

itemGap:10,        //主副标题之间的间距;
left:      //组件离容器左侧的距离  可以是数值,百分比,或left/center/right;
top:   //组件离容器上侧的距离  可以是数值,百分比,或top/middle/bottom;

right:   //组件离容器右侧的距离   可以是数值,百分比;
bottom: //组件离容器下侧的距离  可以是数值,百分比;
backgroundColor:' ',   //标题背景色默认透明;
borderColor:' ', 
borderWidthL' ',
borderRadius:  ,    
shadowBlur:   ,        //阴影的模糊大小,前提show为true,背景色不透明;
shadowColor: ' ',     
shadowOffsetX:   ,
shadowOffserY:  ,

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: