Missing Values and Legend/Series - SOLVED

Get help and support using chartsEngine for LiveCode.

Moderators: heatherlaine, BvG

Post Reply
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Missing Values and Legend/Series - SOLVED

Post by dglass » Tue Jun 28, 2011 7:00 am

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. :)
Last edited by dglass on Tue Jun 28, 2011 4:09 pm, edited 1 time in total.

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Re: Missing Values and Legend/Series - SOLVED

Post by dglass » Tue Jun 28, 2011 4:08 pm

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.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: Missing Values and Legend/Series - SOLVED

Post by BvG » Sat Jul 02, 2011 3:26 pm

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

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Re: Missing Values and Legend/Series - SOLVED

Post by dglass » Sat Jul 02, 2011 4:15 pm

Noted. :)

Post Reply

Return to “chartsEngine”