When using a DataTable, do I need to specify a value for every column in a row?

18 views
Skip to first unread message

Ramón

unread,
Dec 15, 2011, 2:19:28 PM12/15/11
to google-visua...@googlegroups.com
I'm trying to create an area chart showing two series  One series is f1(x) for 0 < x < 10 and the other series is f2(x) for 0 < x < 5.  Maybe something like this for example....

x  f1  f2
1  0   0
2  0   3
3  0   5
4  3   3
5  5   
6  5
7  5  
8  5
9  3

Can I put both series in the same DataTable object if for series f2 the value for x > 5 is undefined or do I need to put in some value and then somehow suppress the visualization of that series beyond a certain point?  Is the question clear?

asgallant

unread,
Dec 15, 2011, 3:28:58 PM12/15/11
to google-visua...@googlegroups.com
Yes, you can leave those values undefined and the chart will draw just fine.

Ramón

unread,
Dec 15, 2011, 3:36:04 PM12/15/11
to google-visua...@googlegroups.com
Thanks, asgallant.  The problem was that I was not explicitly setting those elements to "undefined" and instead creating ragged arrays.  It works now.
Reply all
Reply to author
Forward
0 new messages