如何从点到X轴绘制一条线,在JavaFX ScatterChart中? [英] How to draw a line from the point to X axis, in the JavaFX ScatterChart?

查看:348
本文介绍了如何从点到X轴绘制一条线,在JavaFX ScatterChart中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我使用JavaFX ScatterChart,我需要从数据点到X轴绘制一条线,如下图所示。

Now I am work with JavaFX ScatterChart and I need to draw a line from the point of data to X axis, as I show in the image below.

< img src =https://i.stack.imgur.com/j3eDy.pngalt =enter image description here>

您的帮助! !

推荐答案

您必须创建自定义图表,并将线添加为自定义节点。这与添加的答案中的标记线非常相似在JavaFX图表中的一行问题。

You'll have to create a custom chart and add the lines as custom nodes. This is very similar to the marker lines in the answer to the Adding a line in a JavaFX chart question.

这篇关于如何从点到X轴绘制一条线,在JavaFX ScatterChart中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆