简体   繁体   English

使用angular-chart.js(chart.js)在条形图上叠加平均线

[英]Overlay Average Line on bar chart using angular-chart.js (chart.js)

I know there is way to to overlay 2 graph together (explained in this post: Overlay Line on chart.js Graph ) 我知道有办法将2个图叠加在一起(在这篇文章中解释: 图表上的叠加线.js图

The Overlay of Chart.js method doesn't seem to be supported in the angular-chart.js library. angular-chart.js库似乎不支持Chart.js方法的Overlay

Is there any way to add this feature to the library without modifying the actual angular-chart.js file? 有没有办法在不修改实际的angular-chart.js文件的情况下将此功能添加到库中?

您可以根据堆积条形图示例添加自定义类型,但Overlay图表似乎是通过Chart.js本身的分支,因此不确定它是如何工作的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM