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

查看:15
本文介绍了两行之间的填充区域 - 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天全站免登陆