在项目中显示chart时,当横坐标的标签名称过长时,extjs会自动隐藏部分的标签。

我想,如果能让标签斜着,或者纵向显示的话,就能够节省x轴上的长度。

经过在网上查找,解决方案如下。

//在表格的axes中添加 label项
axes: [
{
....\\y轴
},
{
type: 'Category',
position: 'bottom',
fields: ['name'],
label: { rotate: { degrees: 315} },
title: 'x轴'
}
] //label: { rotate: { degrees: 315} } 使标签顺时针旋转了315度,从横向变成了从左下向右上的方向

最新文章

  1. Read excel and put cell data into HashMap
  2. vi全局替换
  3. Js综合笔记
  4. NSCalenda日历类
  5. Android,visibility属性
  6. jQuery基础知识--Form基础(续)
  7. MongoDB - The mongo Shell, Write Scripts for the mongo Shell
  8. bzoj2535 2109
  9. 安装php 带debug
  10. CSS 基础总结
  11. Oracle经常使用函数
  12. 免费给自己的网站加 HTTPS
  13. Grafan+Prometheus 监控 MySQL
  14. .net的架构模式
  15. js-ES6学习笔记-module(1)
  16. windows 电脑配置信息检测
  17. 【BZOJ2127】happiness 最小割
  18. js比较时间大小(时间为以-分割的字符串时)
  19. 【转】java中创建对象的方法
  20. android 使用图片轮播图---banner 使用

热门文章

  1. 2014-2015 ACM-ICPC, NEERC, Moscow Subregional Contest C. CIA Datacenter
  2. BZOJ4428 : [Nwerc2015]Debugging调试
  3. (转)STORM启动与部署TOPOLOGY
  4. Codeforces Round #248 (Div. 2) B. Kuriyama Mirai's Stones
  5. 使用ajax和history.pushState无刷新改变页面URL
  6. URAL 1244. Gentlemen(DP)
  7. There was an internal API error.
  8. 李洪强iOS经典面试题128
  9. 【android studio】android studio使用过程中,搜集的一些问题
  10. php读取html文件(或php文件)的方法