TheWitness

Log Line Charts Render with Broken Lines when 0 Values Encountered

Recommended Posts

When you render a Logarithmic line that includes values of '0', the graphs do not render continuously.  I will attach XML and image.  This is with the latest 5/28/2013 release.

 

<chart caption='Finished for Queue 'blah' in Project 'blah' (Last 24 Hours)' yAxisName='Jobs' showAnchors='1' anchorRadius='2' formatNumberScale='1' decimalPrecision='3' showValues='0' showNames='1' axis='log' logBase='10' showLegend='1' animation='1' showhovercap='1' labelStep='9'><categories>
<category label='09:32' />
<category label='09:37' />
<category label='09:42' />
<category label='09:47' />
<category label='09:52' />
<category label='09:57' />
<category label='10:02' />
<category label='10:07' />
<category label='10:12' />
<category label='10:18' />
<category label='10:22' />
<category label='10:28' />
<category label='10:33' />
<category label='10:38' />
<category label='10:43' />
<category label='10:48' />
<category label='10:53' />
<category label='10:58' />
<category label='11:03' />
<category label='11:08' />
<category label='11:13' />
<category label='11:18' />
<category label='11:22' />
<category label='11:28' />
<category label='11:32' />
<category label='11:37' />
<category label='11:42' />
<category label='11:47' />
<category label='11:52' />
<category label='11:58' />
<category label='12:02' />
<category label='12:07' />
<category label='12:12' />
<category label='12:18' />
<category label='12:22' />
<category label='12:30' />
<category label='12:33' />
<category label='12:37' />
<category label='12:42' />
<category label='12:47' />
<category label='12:52' />
<category label='12:57' />
<category label='13:02' />
<category label='13:07' />
<category label='13:12' />
<category label='13:17' />
<category label='13:22' />
<category label='13:27' />
<category label='13:32' />
<category label='13:37' />
<category label='13:42' />
<category label='13:47' />
<category label='13:52' />
<category label='13:57' />
<category label='14:02' />
<category label='14:08' />
<category label='14:12' />
<category label='14:17' />
<category label='14:22' />
<category label='14:27' />
<category label='14:32' />
<category label='14:37' />
<category label='14:42' />
<category label='14:47' />
<category label='14:52' />
<category label='14:57' />
<category label='15:02' />
<category label='15:07' />
<category label='15:12' />
<category label='15:17' />
<category label='15:22' />
<category label='15:27' />
<category label='15:32' />
<category label='15:37' />
<category label='15:42' />
<category label='15:47' />
<category label='15:52' />
<category label='15:57' />
<category label='16:02' />
<category label='16:07' />
<category label='16:12' />
<category label='16:17' />
<category label='16:22' />
<category label='16:27' />
<category label='16:32' />
<category label='16:37' />
<category label='16:42' />
<category label='16:47' />
<category label='16:53' />
<category label='16:57' />
<category label='17:02' />
<category label='17:07' />
<category label='17:12' />
<category label='17:32' />
<category label='17:52' />
<category label='18:12' />
<category label='18:32' />
<category label='18:52' />
<category label='19:12' />
<category label='19:32' />
<category label='19:52' />
<category label='20:12' />
<category label='20:32' />
<category label='20:52' />
<category label='21:27' />
<category label='21:32' />
<category label='21:52' />
<category label='22:12' />
<category label='22:32' />
<category label='22:52' />
<category label='23:12' />
<category label='23:32' />
<category label='23:52' />
<category label='00:12' />
<category label='00:33' />
<category label='00:52' />
<category label='01:12' />
<category label='01:33' />
<category label='01:53' />
<category label='02:12' />
<category label='02:32' />
<category label='02:52' />
<category label='03:12' />
<category label='03:32' />
<category label='03:53' />
<category label='04:13' />
<category label='04:32' />
<category label='04:52' />
<category label='05:12' />
<category label='05:32' />
<category label='05:52' />
<category label='06:12' />
<category label='06:32' />
<category label='06:52' />
<category label='07:12' />
<category label='07:32' />
<category label='07:52' />
<category label='08:12' />
<category label='08:32' />
<category label='08:52' />
<category label='09:12' />
</categories>
<dataset seriesName='My Done' color='7EE600' anchorBorderColor='7EE600'>
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='1' />
<set value='1' />
<set value='0' />
<set value='3' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='0' />
<set value='2' />
<set value='4414' />
<set value='497' />
<set value='319' />
<set value='150' />
<set value='68' />
<set value='78' />
<set value='118' />
<set value='141' />
<set value='207' />
<set value='105' />
<set value='150' />
<set value='109' />
<set value='79' />
</dataset>
<dataset seriesName='Others Done' color='942D0C' anchorBorderColor='942D0C'>
<set value='48' />
<set value='116' />
<set value='407' />
<set value='43' />
<set value='69' />
<set value='16' />
<set value='0' />
<set value='19' />
<set value='100' />
<set value='16' />
<set value='2' />
<set value='23' />
<set value='0' />
<set value='24' />
<set value='0' />
<set value='62' />
<set value='0' />
<set value='39' />
<set value='0' />
<set value='31' />
<set value='0' />
<set value='21' />
<set value='0' />
<set value='620' />
<set value='0' />
<set value='57' />
<set value='0' />
<set value='120' />
<set value='0' />
<set value='65' />
<set value='0' />
<set value='31' />
<set value='0' />
<set value='854' />
<set value='934' />
<set value='236' />
<set value='127' />
<set value='191' />
<set value='18' />
<set value='0' />
<set value='165' />
<set value='0' />
<set value='58' />
<set value='89' />
<set value='16' />
<set value='0' />
<set value='32' />
<set value='112' />
<set value='38' />
<set value='85' />
<set value='56' />
<set value='8' />
<set value='0' />
<set value='45' />
<set value='81' />
<set value='57' />
<set value='20' />
<set value='96' />
<set value='16' />
<set value='60' />
<set value='76' />
<set value='53' />
<set value='94' />
<set value='59' />
<set value='43' />
<set value='10' />
<set value='18' />
<set value='47' />
<set value='63' />
<set value='46' />
<set value='22' />
<set value='19' />
<set value='42' />
<set value='41' />
<set value='62' />
<set value='60' />
<set value='70' />
<set value='31' />
<set value='62' />
<set value='67' />
<set value='93' />
<set value='79' />
<set value='81' />
<set value='53' />
<set value='98' />
<set value='62' />
<set value='85' />
<set value='66' />
<set value='131' />
<set value='92' />
<set value='43' />
<set value='115' />
<set value='132' />
<set value='123' />
<set value='114' />
<set value='100' />
<set value='84' />
<set value='43' />
<set value='1629' />
<set value='3885' />
<set value='1281' />
<set value='1029' />
<set value='594' />
<set value='230' />
<set value='530' />
<set value='356' />
<set value='2157' />
<set value='248' />
<set value='402' />
<set value='688' />
<set value='2063' />
<set value='1431' />
<set value='7925' />
<set value='2888' />
<set value='669' />
<set value='623' />
<set value='378' />
<set value='122' />
<set value='72' />
<set value='30' />
<set value='926' />
<set value='325' />
<set value='197' />
<set value='1253' />
<set value='2201' />
<set value='2270' />
<set value='529' />
<set value='126' />
<set value='1229' />
<set value='139' />
<set value='233' />
<set value='2211' />
<set value='160' />
<set value='122' />
<set value='198' />
<set value='414' />
<set value='215' />
<set value='920' />
<set value='163' />
<set value='148' />
<set value='206' />
</dataset>
</chart>

 

post-14182-0-22984000-1372437131_thumb.png

Share this post


Link to post
Share on other sites

The resolved the gaps, but if a data set has all zero for one series, then it will not appear at all on the chart.  This is not as significant as the prior issue, but is there a way to resolve that?  Right now, the legend and the data points are all missing from the graph under this condition.

 

Thanks!

Share this post


Link to post
Share on other sites

In addition, it appears that for the null data correction, it will not start the data until at least one non-null datapoint is found.  Please review the chart attached.

Share this post


Link to post
Share on other sites

Hi,

 

The dataset does not appear on the chart when it contains all 0 values. This is an intended behavior.  As a workaround, you may try setting the first set value to 1 so that you can find the dataset series name in legend. Please find the attached screenshot of the same.

 

Also, the "connectNullData" connects the empty data sets in your data to the non-null data. So, it needs to have atleast one non-null data point in dataset to connect null data with it. 

 

Hope this helps.

Share this post


Link to post
Share on other sites

Yea, this and a series that contains all NULL data both appear to be a bugs IMHO.

Sorry to disappoint, but both are intended! But I do see your point of showing the legend item of empty datasets. Let me see if where we can put it up on our roadmap. :-) Haritha will keep you posted here.

 

Regarding null data not connecting until a preceding non null data is found - a good question to ask ourselves would be where on y-axis will this line project? If its zero it would imply that there is a zero value to start. If it's a straight line parallel to x-axis with equation y=n (n being the non-null point value) it would still falsely indicate that all values from x=0 is n ... that again is misleading visualisation.

 

As such connecting null points are only mathematically correct when there are two plotted non-null points between them. :)

Share this post


Link to post
Share on other sites

Sorry to disappoint, but both are intended! But I do see your point of showing the legend item of empty datasets. Let me see if where we can put it up on our roadmap. :-) Haritha will keep you posted here.

 

Regarding null data not connecting until a preceding non null data is found - a good question to ask ourselves would be where on y-axis will this line project? If its zero it would imply that there is a zero value to start. If it's a straight line parallel to x-axis with equation y=n (n being the non-null point value) it would still falsely indicate that all values from x=0 is n ... that again is misleading visualisation.

 

As such connecting null points are only mathematically correct when there are two plotted non-null points between them. :)

Hi,
 
Could you please upgrade your current version to the latest, i.e, FusionCharts v3.4 that includes a lot of new features and enhancements?
 
You can see the upcoming new docs at http://docs.fusioncharts.com and new additions at http://docs.fusioncharts.com/tutorial-setup-whats-new.html.
 
Hope this helps. :)

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