从X轴向上填充线图折线图中 [英] Fill from x-axis up in dygraph line plot
本文介绍了从X轴向上填充线图折线图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在dygraph中从x轴而不是从0 y轴填充线图.如果所有值均为正值,则填充总是从x轴向上进行.但是,如果有一些负值,则填充从0 y轴开始.是否可以选择始终从x轴填充?
I would like to fill a line plot in dygraph from the x-axis up and not from the 0 y-axis. If all values are positive, then the fill is always from the x-axis and up. However, if there are some negative values, then the fill is from the 0 y-axis. Is there an option to always fill from the x-axis?
推荐答案
The only way to do this would be to write a custom plotter.
但是在执行此操作之前,您应该三思.如果填充的底部随缩放窗口而变化,那么它就没有语义.
But you should think twice before doing this. If the base of the fill changes with your zoom window, then it has no semantic meaning.
这篇关于从X轴向上填充线图折线图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文