Construct a new BarChart with the given axis. The two axis should be a ValueAxis/NumberAxis and a CategoryAxis, they can be in either order depending on if you want a horizontal or vertical bar chart.
xAxis | The x axis to use | |
yAxis | The y axis to use |
Diagram: Chart