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 4055586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:43:11+00:00 2026-05-20T14:43:11+00:00

Here´s what i want to do: I have in my DB a certain entity,

  • 0

Here´s what i want to do: I have in my DB a certain entity, let´s call it “people” and another one, let´s call it “room”. The amount of people in the room can change every 15 minutes,i.e full hour, quarter after, etc.
Now, i want to create a timechart with jfreechart that shows the amount of people in the room for a period of 3 years, zoomable to the quarter hour (or minute, for all i care :))

Question 1: the dataset. Can i use the JDBCXYDataset to do it or is it better to execute the query and write the data from the resultset to a TimeseriesCollection (code example??)

Question2: i want the chart to initialize showing the whole 3 years and beeing able to zoom in to the individual days/hours/minutes. How do i set this up ?

Thanks for helping.

  • 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-05-20T14:43:12+00:00Added an answer on May 20, 2026 at 2:43 pm

    Your best bet is going to just run a query and create a TimePeriodValuesCollection. JDBCXYDataset is just an XYDataset.

    For your second question, you just need to have your Time Period Series populated with three years of data. If you do that the chart is going to show the whole three years by default. Then you can zoom.

    When creating the data, use a TimePeriodValues populated with SimpleTimePeriod ‘s objects.

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

Sidebar

Related Questions

Here is what I want to achieve: I have RadGridView, let's call it gridView,
I want to have a page redirect to another. Here is the situation: I
Here i want to do UDP Socket programming in C. I have one device
Here's my scenario: I have one page that collects certain data from the user.
Here is my problem. I have a certain files from the solution (let's say
Placing an image inside a Span (here : HtmlGenericControl ) programmatically Want to have
I want to have a UIImage as a background image on a UIView. Here
James here. I'm working on a site that I want to have the same
I work for a travel agency, they have a website, from here they want
I want to be able to have default text like Enter content here... appear

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.