柱状图如何插件设置刻度的密度
利用属性valueAxisMajorUnit,需要注意的是,它并非直接设置刻度的密度,是需要你计算后提供每个刻度的长度,再据此显示对应刻度数量。
比如最大数值为3,而你想要5个刻度,那么将valueAxisMajorUnit设置为0.6的话,这样5个刻度分别是0.6、1.2、1.8、2.4、3、3.6;如果你想要3个刻度,那么将其设置为3,那刻度分别为0、3、6(如图)。
注:柱状图会预留出一格刻度来容纳最大值。
假设需要展示n个刻度,就把柱子刻度最大值除以(n-2)。例如需要展示5个刻度,最大值为15,那就是15/(5-2)=5,为什么除以(5-2),因为要保证5个刻度,0和最大刻度不可用,那么可用刻度就只有3个,需要用3个刻度展示最大值,因此就可以得到最终刻度分别为0、5、10、15、20。
import clr;
clr.AddReference('Newtonsoft.Json');
clr.AddReference('Kingdee.BOS');
from Kingdee.BOS import *;
from Newtonsoft.Json import *
from Newtonsoft.Json.Linq import *
def AfterBindData(e):
this.View.GetControl("FCHARTCHECKOUTSTEP").InvokeControlMethod("setValueAxisMajorUnit
",5); #刻度从0开始逐级递增5
柱状图如何插件设置刻度的密度
利用属性valueAxisMajorUnit,需要注意的是,它并非直接设置刻度的密度,是需要你计算后提供每个刻度的长度,再据此显示对应刻度数量。比如...
点击下载文档
本文2024-09-23 04:26:30发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-165323.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
- 鼎捷API-T100-2.采购信息API-查询核价单列表数据-t100.oapi.pricing.list.data.query.get-wssp00070CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-查询发票类型列表数据-t100.oapi.invoice.type.list.data.query.get-wssp00329CN02_s.pdf
- 鼎捷API-T100-6.帐款信息API-创建凭证数据-t100.oapi.voucher.data.create-wssp00340CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-无效机器数据-t100.oapi.machine.data.unavailable-wssp00048CN02_s.pdf
- 鼎捷API-T100-5.生产信息API-删除报工数据-t100.oapi.wo.work.report.data.delete-wssp00208CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-创建机器数据-t100.oapi.machine.data.create-wssp00041CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-删除员工数据-t100.oapi.employee.data.delete-wssp00008CN02_s.pdf
- 鼎捷API-T100-4.物流信息API-过帐还原调拨单数据-t100.oapi.transfer.data.dispost-wssp00220CN02_s.pdf
- 鼎捷API-T100-4.物流信息API-撤销审核杂收单-t100.oapi.other.in.inventory.data.disapprove-wssp00231CN02_s.pdf
- 鼎捷API-T100-6.帐款信息API-过帐传票数据-t100.oapi.voucher.data.post-wssp00356CN02_s.pdf
热门文章