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

  • SEARCH
  • Home
  • 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 8656287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:14:26+00:00 2026-06-12T15:14:26+00:00

I have a scenario where, the data (both x and y coordinates) comes dynamically.

  • 0

I have a scenario where, the data (both x and y coordinates) comes dynamically. I have to start drawing the graph from the time when i receive the first point. So the graph should be automatically updated every time a new data point comes in.This should continue for a period of time (Note: here both x and y coordinates are double variables and time is not considered as variable at all. We don’t know at what time data comes in). I have tried to redraw the total graph after adding a data point to the existing dataset. It worked successfully. But i noticed a flaw in it. I i have a dataset (say at particular time t) in the following order {(1,1)(2,3)(3,5)(4,7)(2.5,1)}. This plot should have a line from point (4,7) to (2.5,1). But the point (2.5,1) is connected from (2,3) and (3,5), which i don’t want. So please suggest any way of automatically updating the graph whenever a new data point comes in.

  • 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-12T15:14:27+00:00Added an answer on June 12, 2026 at 3:14 pm

    Assuming that you are using an XYSeries have you tried turning off the sorting

    private static XYDataset createDataset() {
      XYSeries dataset = new XYSeries("A",false,true);
      dataset.add(1,1);
      dataset.add(2,3);
      dataset.add(3,5);
      dataset.add(4,7);
      dataset.add(2.5,1);
      XYSeriesCollection ds = new XYSeriesCollection();
      ds.addSeries(dataset);
      return ds;
    } 
    

    And you shold be able to create a chart like this:

    enter image description here

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

Sidebar

Related Questions

I have the scenario where the data from a single table must be in
In general, I have the following scenario: Fetch product and its related data from
Scenario: old legacy code in rpg have to consume data from a new web
I have the following scenario: I have various user's data stored in my database.
Here's the scenario: I have 2 tables with data, one is the 2009 version
Here is the scenario: I have a visual that displays some data The data
My scenario is that I have some payment transaction data in MySQL and some
In my scenario, I have a program that analyzes data input files and produces
I have scenario, I have two update panels on the page (both have update
I have business scenario as source files (text files) comes to load into SQL

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.