How to add negative values to JavaFx Area Chart?

混江龙づ霸主 提交于 2019-12-24 13:18:23

问题


I'd like to draw a difference (area) chart, something like this: How would d3.js difference chart example work with json data? where my chart is centered around horizontal (y=0) axis.

JavaFx's Area chart seems to know how to fill only the area below the line!?

Example "Adding negative value" (Fig 33-7) seems to be what I'm looking for (March series) BUT it does not work/render as shown!

Instead of:

it renders:

Thanks,

Igor

来源:https://stackoverflow.com/questions/30185035/how-to-add-negative-values-to-javafx-area-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!