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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:31:25+00:00 2026-05-29T22:31:25+00:00

I´m using a simple area chart based on a simple Dataset like this: DateTime(sql.timestamp)

  • 0

I´m using a simple area chart based on a simple Dataset like this:

DateTime(sql.timestamp) |Value(Integer)
2012-02-17 00:02:02     |100
2012-02-17 00:02:08     |110
2012-02-17 00:02:20     |90
2012-02-17 00:02:35     |10
2012-02-17 00:02:40     |130
2012-02-17 00:04:22     |14
2012-02-17 00:04:33     |45
2012-02-17 00:05:02     |60
...

DateTime is used by Category Axis, Value is used by Range Axis.
In the Dataset are ~1000 Records
In the Labels of the Category Axis will every DateTime Value be shown.
But that is with 1000 records too much, the Category Labels will be shown as Black Line.
And that is my problem.
I´d tried to (un)check all “Chart Properties”. With no results.
Did i have to Mask or filter the labels?
I´d tried to change the values of:
Category Tick Label Mask
Category Axis Vertical Tick Labels
(This checkbox doesn´t takes effect)

Label Expression of the Category Axis

All in Several ways.
But it won´t work.
Each dataset will create an own Label.

Other report engines that i have used has calculated the Cat. Axis dynamic.
But JasperReports?

I´m using iReport 4.5.0 with (actual) jfreechart 1.0.14

EDIT

If i use a timeseries Chart, JasperReports will group the data by Intervall (Year, month,…) and that not Dynamicly

But the look of the chart is quite good, so it is that what i want.
Only the Labels has to be located far from each other.

Here a fine Example (advsoft phpChartdirector)
that is OK

Here the JasperReports / IReport example:

not OK. Take a look to the cat. Axis

not OK. Take a look to the cat. Axis

So.. What´s to do ?

End EDIT

Kind Regards
Christian

  • 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-29T22:31:27+00:00Added an answer on May 29, 2026 at 10:31 pm

    Use a Timeseries chart instead of a Line chart. You should get exactly what you’re looking for that way.

    EDIT: I tested with your supplied .jrxml and data. It works well:
    Nice Time Series Chart

    But… there seems to be a bug in iReport. You cannot set the time period in the iReport GUI. Perhaps this is what is causing you problems. It was very confusing to me. iReport generates this regardless of what time period you attempt to choose:

    <timeSeriesDataset>
    

    But you need to manually change the JRXML to this:

    <timeSeriesDataset timePeriod="Second">
    

    Once you do that, then you’ll get a nice chart. At least iReport doesn’t remove the correct timePeriod info… so you only have to do it once.

    Note: If you’re concerned about details like getting your date info to display on 2 lines, this is possible as well. I hate being stuck with a single line. I wrote an article about that last year. Look for the section Category Labels on multiple lines.

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

Sidebar

Related Questions

Using simple type like class A { public int X, Y; } with object
i would like to implement a thread framework using simple c and timers....can anyone
In my web admin area I have using very simple logic: session_start(); ob_start(); if(!isset($_SESSION['user'])){
I need to add a simple Rich Text Area into my project using JQuery.
HI im trying to create simple pie chart using the MS Chart controls. When
When using simple request to post to Twitter the messages are signed with sent
I am serializing a class using simple-xml ( http://simple.sourceforge.net/ ) but when i try
I'm already thinking about to start using simple GET string. Or I'm not so
I need to load an XML source using Simple XML, duplicate an existing node
Whenever I try to copy an entire working copy using simple drag and drop

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.