Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 c3js 中的简单折线图上绘制趋势线,但我似乎找不到内置的方法来做到这一点?如果这不可能,我如何计算趋势线(线性回归)数据以显示在图表上?
谢谢
还没有内置的解决方案,但我会投入两分钱,以防有人可以专门为 c3.js 创建一些东西。
您可能必须使用以下方法之一计算起点/终点:
这里也有 D3.js 解决方案: