Extjs 表格横坐标显示问题
2024-08-24 09:23:06
在项目中显示chart时,当横坐标的标签名称过长时,extjs会自动隐藏部分的标签。
我想,如果能让标签斜着,或者纵向显示的话,就能够节省x轴上的长度。
经过在网上查找,解决方案如下。
//在表格的axes中添加 label项
axes: [
{
....\\y轴
},
{
type: 'Category',
position: 'bottom',
fields: ['name'],
label: { rotate: { degrees: 315} },
title: 'x轴'
}
] //label: { rotate: { degrees: 315} } 使标签顺时针旋转了315度,从横向变成了从左下向右上的方向
最新文章
- Read excel and put cell data into HashMap
- vi全局替换
- Js综合笔记
- NSCalenda日历类
- Android,visibility属性
- jQuery基础知识--Form基础(续)
- MongoDB - The mongo Shell, Write Scripts for the mongo Shell
- bzoj2535 2109
- 安装php 带debug
- CSS 基础总结
- Oracle经常使用函数
- 免费给自己的网站加 HTTPS
- Grafan+Prometheus 监控 MySQL
- .net的架构模式
- js-ES6学习笔记-module(1)
- windows 电脑配置信息检测
- 【BZOJ2127】happiness 最小割
- js比较时间大小(时间为以-分割的字符串时)
- 【转】java中创建对象的方法
- android 使用图片轮播图---banner 使用
热门文章
- 2014-2015 ACM-ICPC, NEERC, Moscow Subregional Contest C. CIA Datacenter
- BZOJ4428 : [Nwerc2015]Debugging调试
- (转)STORM启动与部署TOPOLOGY
- Codeforces Round #248 (Div. 2) B. Kuriyama Mirai's Stones
- 使用ajax和history.pushState无刷新改变页面URL
- URAL 1244. Gentlemen(DP)
- There was an internal API error.
- 李洪强iOS经典面试题128
- 【android studio】android studio使用过程中,搜集的一些问题
- php读取html文件(或php文件)的方法