Hi Rob,
To set the lower and upper bounds, you need to turn off auto ranging:
XAxis.RunMethod("setAutoRanging",Array As Object(False))
The code was failing here:
XAxis.RunMethod("setLowerBound",Array As Object("10"))
As you must pass the correct type of object to the JavaObject Runmethod, setLowerBound reuires a Double, by sending "10" you are sending a string.
You need to do:
Dim Val As Double = 10
XAxis.RunMethod("setLowerBound",Array As Object(Val))
CSS to set the font-size has a lowercase f in font.
XAxis.RunMethod("setStyle",Array As Object("-fx-font-size: 0.6em;"))
and it's not possible to access the class CSS assignments from setStyle as in:
LineChart.RunMethod("setStyle",Array As Object(".chart-series-line {-fx-stroke-width: 2px; }"))
The target is the object that JavaObject is pointing at and as Erel says, each one will overwrite the previous, you'd need to create a style sheet and attach it to a scene, see the
javafx css reference guide