Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JavaFX
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JavaFX
XAxis not showing tick-tick labels
Derek Smiths
Ranch Hand
Posts: 119
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The XAxis tick and tick labels for my chart will not display and I'm not sure why because the second chart on the same pane does.
String[] time = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"}; String[] days = {"Mon", "Tue", "Wed", "Thurs", "Fri", "Sat", "Sun"};
Does not show here
CategoryAxis xHoursAxis = new CategoryAxis(); xHoursAxis.setLabel("Hour"); xHoursAxis.setCategories(FXCollections.<String>observableArrayList(time)); NumberAxis yPowerAxis = new NumberAxis(); yPowerAxis.setAutoRanging(false); yPowerAxis.setLabel("Power"); AreaChart solarChart = new AreaChart(xHoursAxis, yPowerAxis); XYChart.Series<String, Number> solarSeries = new XYChart.Series<>();
Does show here
CategoryAxis xDaysAxis = new CategoryAxis(); xDaysAxis.setAnimated(false); xHoursAxis.setCategories(FXCollections.<String>observableArrayList(days)); xDaysAxis.setLabel ("Day"); NumberAxis yTemperatureAxis = new NumberAxis(); yTemperatureAxis.setAutoRanging (true); yTemperatureAxis.setLabel ("Temperature"); LineChart temperatureChart = new LineChart(xHoursAxis, yTemperatureAxis);
Derek Smiths
Ranch Hand
Posts: 119
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I did a little copy and pasting -- had my Axis variable mixed up. Problem solved.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Arduino and JavaFX
how to call JavaFX_Charts from a java GUI
Formatting the way Array Information is displayed
Assign a value to a numeric variable, then manipulate it, and return a new string.
shifting to the next enum in the list
More...