javascript - 获得可见的刻度/轴范围
问题描述
我正在使用 Arction LightningChartJs 我想知道如何在渐进式滚动轴中获取可见 x 轴的当前比例/范围。谢谢
解决方案
chart.getDefaultAxisX().scale.getInnerStart();//Returns the start of the x axis
chart.getDefaultAxisX().scale.getInnerEnd();//Returns the end of the x axis
图表类具有 scale 属性,该属性又具有在触发这些方法时检索起点和终点的方法。
推荐阅读
- sql-server - 2018 年 11 月最新的 Windows 7 版本是什么
- python - 如果多列相同,则合并两个数据框
- sql - 如何在 SQL Server 中查找和删除重复项
- android - 如何引用动态生成的按钮?
- javascript - 在 Firebase 函数中存根 auth0
- google-apps-script - 比较“电子邮件”字段并删除 Google 表格中与重复电子邮件列相对应的重复项
- mysql - 从文件或本地表中获取 SQL QUERY 的 WHERE IN 过滤器的输入列表
- asp.net - 我可以使用 Nuget.Server 托管在 .Net Core 中构建的 Nuget 包吗?
- android - Android自动链接:跳过少于10位的数字
- python - Python 2.7 中的 Base64 解码