Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8982781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:39:49+00:00 2026-06-15T20:39:49+00:00

Ive been trying to look on the oracle tutorials on the chart section but

  • 0

Ive been trying to look on the oracle tutorials on the chart section but so far i have not been able to succeed.

what i want to do is basicly test a lineChart that i have added in my JavaFx scene builder.

so far my code is the following:

    public class SimpleController implements Initializable{

    public Button btn_getData;
    public ProgressBar progressBar;
    public LineChart<String, Integer> lineChart;

    @Override
    public void initialize(URL arg0, ResourceBundle arg1) {
        // TODO Auto-generated method stu
        lineChart.getXAxis().setAutoRanging(true);
        lineChart.getYAxis().setAutoRanging(true);
        progressBar.setId("progressBar");

        XYChart.Series series = new XYChart.Series<>();
        series.getData().add(new XYChart.Data<>("Jan", 23));
        series.getData().add(new XYChart.Data("lol", 2));
        lineChart.getData().add(series);
    }
}

As you can see all i want to do is for my program to display a sortof test.

Hope someone is able to help.

Also if you have time to explain what the problem is aswell that would be awesome since im trying to get better at JavaFx 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:39:51+00:00Added an answer on June 15, 2026 at 8:39 pm

    Assuming that in your fxml you would have something like fx:id="lineChart" assigned to your LineChart node and a controller assigned to your Parent Node this would probably work.

    Also try:
    series.getData().add(new XYChart.Data<String,Integer>(String,integer)); instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to look around online for something I want but I'm not
Hi ive been trying to use System.Security.Cryptography to encrypt and decrypt a file but
I've been trying to look for an explanation online but I can't seem to
I've been trying out tables in my jquery mobile projects but they don't look
Ive been trying to sort out output using AWK, and have been pretty successful
I've been trying to understand the stochastic hill climber for a while, but not
I've been trying to look in the wiki about doing this, I'm following it,
I've been been trying to look for a piece of javascript code that compares
I've been trying to recreate an effect from this tutorial: http://jqueryfordesigners.com/jquery-look-tim-van-damme/ Unfortunately, I want
I've been trying to create a generic event. Basically it should look like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.