JavaScript 提供具有不成比例的轴值的交互式时间轴的库?

JavaScript library that presents an interactive timeline with disproportionate axis' values?

我需要在 iOS 应用程序中实现时间轴视图。我打算使用嵌套在 Web 视图中的 JavaScript 组件,因为我认为它比本地绘制时间轴更好。到目前为止我找到了这个库:

http://visjs.org/docs/timeline.html
https://almende.github.io/chap-links-library/timeline.html

他们看起来很不错,看起来他们中的任何一个都能完成大部分所需的工作。但是我有一个在任何时间线库中都找不到的特定要求:

时间轴的值应该不成比例(中心附近的时间值需要比时间轴当前视图末端附近的值更分散)。

http://oi61.tinypic.com/2hg70ib.jpg
您可以在图像上看到轴上的年份间隔很远。

有谁知道任何 JavaScript 库或更好的库 - iOS 原生库或对提供此类功能的现有库进行任何修改?

使用 chap-links-library 的时间轴,您可以轻松地用您自己的非线性函数 (就像用 x^2 环绕 window 的中心一样)。请参阅此处的代码:https://github.com/almende/chap-links-library/blob/master/js/src/timeline/timeline.js#L2506-L2542

请注意,chap-links-library 有一个后继者:vis.js. In this library, you would have to override the DateUtil.toScreen and DateUtil.toTime functions: https://github.com/almende/vis/blob/master/lib/timeline/DateUtil.js#L275-L324