第87页,共495页。 显示 4,942 条结果 (0.03 秒)
【web电子表格】实现跑马灯效果
该宏示例在 V10.5上 验证通过 提示:本文档的示例代码仅适用于本文档中的示例报表/场景。若实际报表/场景与示例代码无法完全适配(如使用功能不一致,或多个宏代码冲突等),需根据实际需求开发代码。 1. 示例效果 原有电子表格宏实现:https://wiki.smartbi.com.cn/pages/viewpage.action?pageId=51943141 https://wiki.smartbi.com.cn/pages/viewpage.action?pageId=51943141 预期效果: 跑马灯.gif 2. 操作步骤 步骤一: 新建一个空白的自助仪表盘【仪表盘】设置组件背景样式
://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#appendcss方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#appendcss 步骤六:点击 保存。重新访问报表,可看到效果已实现 3.下载资源 appendCss-设置组件样式.xml【仪表盘】延时移除组件样式
) } image2021-9-10_19-21-4.png 示例主要使用的是IEChartsPortlet对象下的removeCss https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#removecss方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#removecss 步骤六:点击 保存。重新访问报表,可看到效果已实现 3. 下载资源 removeCss-移除组件样式.xml【仪表盘】截取y轴名称
://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions 2020-10-16 16-26-38.png 步骤六:点击 保存,查看效果,需重新打开报表,可看到效果已实现 2020-10-16 16-11-10.png 3.资源下载 代码资源:migrate.xml【仪表盘】地图实现提示显示多个指标
` return str } portlet.setChartOptions(options) //设置指标 } 示例主要使用的是IEChartsPortlet对象下的setChartOptions https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions 步骤六:点击 保存,查看效果,需【仪表盘】地图实现循环高亮效果
) } }, 1500) }示例主要使用的是IEChartsPortlet对象下的getChartInstance https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#getchartinstance方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#getchartinstance 步骤六:点击 保存,查看效果,需重新打开报表,可看到效果已实现 GIF【仪表盘】堆积图如何显示合计
)) }) }) return result; }示例主要使用的是IEChartsPortlet对象下的setChartOptions https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions 步骤六:点击 保存,查看效果,需重新打开报表,可看到效果已实现【仪表盘】图形组件改变X轴位置
} portlet.setChartOptions(options) } 示例主要使用的是IEChartsPortlet对象下的setChartOptions https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions 步骤六:点击 保存,查看效果,需重新打开报表,可看到效果已实现 3.资源下载 代码资源:migrate.xml【仪表盘】改变图形组件的图形类型
options.series[i].stack = "total"; } } portlet.setChartOptions(options) } 示例主要使用的是IEChartsPortlet对象下的setChartOptions https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces【仪表盘】根据区间设置柱图中柱子的颜色
" } } } } portlet.setChartOptions(options) } 示例主要使用的是IEChartsPortlet对象下的setChartOptions https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces/iechartsportlet.html#setchartoptions方法,点击查看API详情 https://wiki.smartbi.com.cn/api/xdashboardapi/interfaces