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


基础教程推荐
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01