Sign in to follow this  
ghost

No Bars Gant chart

Recommended Posts

Hi,

 

I use gant charts to build a timeline to display some response time but sometimes bars aren't displayed correctly. (see attached file, NoBars.PNG)

That's the html for each bars not displayed correctly, it's always x="868.5" for each bar.

<rect x="868.5" y="71.5" width="1" height="10" r="0" rx="0" ry="0" stroke="#4371a7" opacity="1" fill-opacity="1" stroke-opacity="1" stroke-width="1" style="opacity: 1; fill-opacity: 1;"></rect>

If you want test, use the attached file NoBars.xml.

 

 

Thanks,

Ghost

post-59758-0-54295500-1390213304_thumb.png

NoBars.xml

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello,

 

The dateFormat which you are using in not valid.

 

You can not plot tasks with respect to time fractions. You can plot tasks upto seconds. (for time unit)

 

So, you would need to use following date format:

 

Ref. Code:

<chart .. dateFormat="dd-mm-yyyy hh:mn:ss">

 

For more information, please refer the following link:

http://docs.fusioncharts.com/widgets/Contents/Gantt/DateFormat.html

 

Hope this helps!

Share this post


Link to post
Share on other sites
hi Sumedh,

thanks for your help.

 

i changed the date Format like you say:




<chart caption="test" scrollColor="4F85C5" dateFormat="dd-mm-yyyy hh:mn:ss" paletteThemeColor="4F85C5">



But i still have this probleme, the bars don't display.

Again an xml file to test :)

 

Thanks for your concerns,

Ghost

NoBars2.xml

Share this post


Link to post
Share on other sites

Hey,

 

Sincere apologies for the delayed response.

 

The bars were not visible because one of the task process end attribute was defined as "01-01-0001 00:00:00"

<task start="15/01/2014 16:56:37" end="01-01-0001 00:00:00" tooltext="<b>GET </b><br /><b>Status: </b>0 FIDDLER GENERATED - RESPONSE DATA WAS MISSING<br /><b>MIME: </b><br /><b>Dns Lookup: </b>0 ms<br /><b>Connection: </b>0 ms<br /><b>SSL: </b>0 ms<br /><b>Waiting: </b>0 ms<br /><b>Receiving: </b>0 ms<br />" height="10" animation="0" />

with the following code:

<task start="15/01/2014 16:56:37" end="15/01/2014 16:56:37" tooltext="<b>GET </b><br /><b>Status: </b>0 FIDDLER GENERATED - RESPONSE DATA WAS MISSING<br /><b>MIME: </b><br /><b>Dns Lookup: </b>0 ms<br /><b>Connection: </b>0 ms<br /><b>SSL: </b>0 ms<br /><b>Waiting: </b>0 ms<br /><b>Receiving: </b>0 ms<br />" height="10" animation="0" />

Please find the screenshot and updated XML attached.

 

Hope this helps. :)

gantt.PNG

NoBars2.xml

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this