I can't get the Stacked Bar Charts of jCharts to display negative values when running with java 11 (OpenJDK 11). It works OK under Java 8.
To test it I've gone back to the original examples posted by Informatix (Charts2 from https://www.b4x.com/android/forum/threads/jcharts.71975/).
I changed a couple of the values in the XYSeries to be negative;
and ran it first with with the javac.exe in Tools>Configure Paths set to Java 8, then to openJDK 11. The screen shots attached show the output, with Java 8 showing the negative values correctly (right image) but Open Java 11 missing them off (left image).
Am I missing something here, or could this be an issue in the jCharts library or OpenJFX itself?
To test it I've gone back to the original examples posted by Informatix (Charts2 from https://www.b4x.com/android/forum/threads/jcharts.71975/).
I changed a couple of the values in the XYSeries to be negative;
B4X:
Dim Series2 As XYSeries
Series2.Initialize("Oreo")
Series2.Add("Feb",40)
Series2.Add("Mar",38)
Series2.Add("Apr",39)
Series2.Add("May",36)
Series2.Add("Jun",-33)
Series2.Add("Jul",-32)
Series2.Add("Aug",28)
Series2.Add("Sept",29)
Series2.Add("Oct",27)
Series2.Add("Nov",25)
Series2.Add("Dec",20)
BarChart.AddAllSeries(Array As XYSeries(Series1, Series2))
and ran it first with with the javac.exe in Tools>Configure Paths set to Java 8, then to openJDK 11. The screen shots attached show the output, with Java 8 showing the negative values correctly (right image) but Open Java 11 missing them off (left image).
Am I missing something here, or could this be an issue in the jCharts library or OpenJFX itself?
Last edited: