ChartWrapper and internal data

30 views
Skip to first unread message

API Developer

unread,
Aug 13, 2012, 7:20:33 PM8/13/12
to google-visua...@googlegroups.com
Hey guys,

I'm creating a structure that implements the ChartWrapper and was wondering if someone could clarify some specifics as to why it works. Currently I hold the data (google DataTable) inside of the wrapper and use the getDataTable() and setDataTable() to access it and make small changes to it if needed. In the cases of these functions, are they returning references, does the setDataTable try to just update it, or does it create an entire copy then copy that entire copy into itself. 

asgallant

unread,
Aug 14, 2012, 12:06:43 PM8/14/12
to google-visua...@googlegroups.com
Javascript copies object references by default, and I haven't observed anything that would lead me to believe the API does anything differently.
Reply all
Reply to author
Forward
0 new messages