Given the following data:
1293868800,50,50,,
1328083200,50,30,20,
1330588800,,30,20,40
1354348800,,,,
A stacked bar graph will look like this:
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.
Missing Values and Legend/Series - SOLVED
Moderators: heatherlaine, BvG
Missing Values and Legend/Series - SOLVED
Last edited by dglass on Tue Jun 28, 2011 4:09 pm, edited 1 time in total.
Re: Missing Values and Legend/Series - SOLVED
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.
1293868800,50,50, ,
so that's '50,<space>,<space>'
triggers whatever needs to be triggered in CE for the series to show up properly.
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
Re: Missing Values and Legend/Series - SOLVED
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
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode