Skip to Content
author's profile photo Former Member
Former Member

Gantt chart axis problem: fine in Crystal, offset in web


I'm having a problem with my gantt charts. If I run the report in Crystal, the first data value is flush with the vertical axis of the report. That's good.

When I run the report in IE, the first data value is 2cm to the right of the vertical axis - which makes the report invalid; it looks like there's time before the value for which the data doesn't apply, which is incorrect.

The same thing happens on the rightmost data value.

Is there a way to make the data values flush in the web version?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 16, 2008 at 05:54 PM

    There's no programmatic control over chart object placement.

    The Java Reporting Component by default extends the axis ticks one unit to the left and right of the charted values.

    You can try explicitly setting the range of the axis to be one unit in - this would make the gantt bars extending over the axis range to disappear, but still should appear when formatted in the JRC.


    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi, Manny,

      Problems with reports not being rendered the same way using the JRC as they are in the designer are caused mainly because the JRC was written using Java and the designer was not. This leads to mismatches between the languages, causing rendering problems.

      There are two steps to take at this point. The first is to use our most recent JRC jar files. They address a number of these kinds of issues and can be downloaded from here:

      If these do not completely solve the issues you are seeing, then the next step is to use the Crystal Reports for Eclipse designer. This is a plug-in written for the Eclipse web app IDE and it is an entire designer written in Java, so it will not exhibit any of the mismatch errors seen when using the standard designer - what you see in this designer is what you get when using the JRC. It includes our most recent JRC jar files, so if you choose to go directly to CR for Eclipse, you will not need to download the jars as directed above (but you may want to check for updates, just to be sure).

      Crystal Reports for Eclipse can be found here:

      If you do not already have the Eclipse IDE, there is an all-in-one installation that includes both the Eclipse IDE and the CR for Eclipse plug-in already installed. It's available here:

      Using the Crystal Reports for Eclipse designer will allow you to see how it's going to look on your web page before going through all the trouble of moving it to your web page.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.