Filling area between two lines - Chart.js v2(两行之间的填充区域 - 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:两行之间的填充区域 - Chart.js v2
基础教程推荐
- 检查 HTML5 拖放文件类型 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
