如何在JavaFX Linechart中绘制单独的数据子范围?

时间:2018-08-04 11:57:08

标签: java javafx charts

我只需要为数据的某些单独的子范围绘制一个图表片段,在它们之间留有空白。例如,要为Description="Excise Duty(12%)-GSM"值在amount_fixed = [row6.ZipBill:/ZipBill/Usage/Details/@Service].toString().toLowerCase().contains("landline") ? Integer.parseInt([row6.ZipBill:/ZipBill/Usage/Details/@Amount])*0.12 : 0 amount_mobile = [row6.ZipBill:/ZipBill/Usage/Details/@Service].toString().toLowerCase().contains("mobile") ? Integer.parseInt([row6.ZipBill:/ZipBill/Usage/Details/@Amount])*0.12 : 0 Tax_amount = [row4.ZipBill:/ZipBill/TotalTax/Details/@Description].toString().toLowerCase().contains("excise") && [row4.ZipBill:/ZipBill/TotalTax/Details/@Description].toString().toLowerCase().contains("fixed") ? Var.amount_fixed : [row4.ZipBill:/ZipBill/TotalTax/Details/@Description].toString().toLowerCase().contains("excise") && [row4.ZipBill:/ZipBill/TotalTax/Details/@Description].toString().toLowerCase().contains("gsm") ? Var.amount_mobile : Integer.parseInt([row4.ZipBill:/ZipBill/TotalTax/Details/@Amount]) 范围内的数据绘制节点和它们之间的线,请为值<?xml version="1.0" encoding="UTF-8"?> <ZipBill> <NonUsage> <Details Service="Mobile" Lines="1" Amount="10000"></Details> <Details Service="Mobile" Lines="1" Amount="10000"></Details> <Details Service="Landline" Lines="1" Amount="10000"></Details> <Details Service="Landline" Lines="1" Amount="10000"></Details> </NonUsage> <Usage> <Details Service="Mobile" Amount="191084"></Details> <Details Service="Mobile" Amount="191084"></Details> <Details Service="Landline" Amount="73544"></Details> <Details Service="Landline" Amount="73544"></Details> </Usage> <WithoutTax> <Details Description="Total before Tax" Amount="284628"></Details> <Details Description="Total before Tax" Amount="284628"></Details> </WithoutTax> <TotalTax> <Details Description="VAT(18%)" Amount="51233.0"></Details> <Details Description="VAT(18%)" Amount="51233.0"></Details> <Details Description="Excise Duty(12%)-GSM" Amount="22930.079999999998"> </Details> <Details Description="Excise Duty(12%)-GSM" Amount="0.0"></Details> <Details Description="Excise Duty(12%)-Fixed line" Amount="0.0"></Details> <Details Description="Excise Duty(12%)-Fixed line" Amount="8825.279999999999"></Details> </TotalTax> <TotalAmount> <Details Description="Total Inclusive Tax" Amount="367616"></Details> <Details Description="Total Inclusive Tax" Amount="367616"></Details> </TotalAmount> </ZipBill> 留一个空白,然后再次为点{ {1}}。如图所示的图表。 JavaFX Linechart有可能这样做吗?

enter image description here

0 个答案:

没有答案