两行之间的填充区域 - Chart.js v2 [英] Filling area between two lines - Chart.js v2

查看:170
本文介绍了两行之间的填充区域 - Chart.js v2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用

已有答案 here ,解释了如何扩展chartjs来实现这一目标。
但是我知道这个功能现在在V2中是原生的(来自 github问题页面上的这个帖子),问题是我找不到引用此文档的文档。

There is already an answer here, that explains how to extend chartjs to do this. But I know this feature is now native in V2 (from this thread on the github issues page), the problem is I just can't find documentation referring to this.

是否有关于此的部分文档?有人知道如何使用这个功能吗?

Is there a section about this in the doc? Anyone know how to use this feature?

谢谢!

推荐答案

这是一个小插件,可以在任意两个数据集行之间进行着色。

Here is a small plugin that can do shading between any two dataset lines.

https://stackoverflow.com/a/41733045/852977

这篇关于两行之间的填充区域 - Chart.js v2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆