Page 1 of 1

Missing Values and Legend/Series - SOLVED

Posted: Tue Jun 28, 2011 7:00 am
by dglass
Given the following data:

1293868800,50,50,,
1328083200,50,30,20,
1330588800,,30,20,40
1354348800,,,,

A stacked bar graph will look like this:
LiveCodeScreenSnapz014.jpg
stacked bar with missing series
Presumably, Project 4 is not shown in the legend because it doesn't have a numeric value in the first dataset (seconds,50,50,,), but CE is able to draw the various sets, and even the 'late arrival' (Project 4) properly without numeric values for all items.

I tried this because I want to display the values, but I don't want to see all the zeroes.

If this is as it is intended, I'd like to request that there be an option, or the ability for the engine to build the legend from all the datasets rather than just the first one.

And I hope I didn't just point out a bug that will cause this functionality (datasets with missing values) to be removed. :)

Re: Missing Values and Legend/Series - SOLVED

Posted: Tue Jun 28, 2011 4:08 pm
by dglass
Putting spaces in the empty datapoints:

1293868800,50,50, ,

so that's '50,<space>,<space>'

triggers whatever needs to be triggered in CE for the series to show up properly.

Re: Missing Values and Legend/Series - SOLVED

Posted: Sat Jul 02, 2011 3:26 pm
by BvG
Well, that's certainly a crafty workaround, but be warned that it certainly is a unsupported functionality. Therefore it might break at any time, whenever there's an update to chartsEngine... Not that I'll try to break this inherent behaviour, but you never know ;)

Re: Missing Values and Legend/Series - SOLVED

Posted: Sat Jul 02, 2011 4:15 pm
by dglass
Noted. :)