I've just uploaded some updates for a couple of things:
1. There is a parser that can render tiddlers containing the JavaScript data arrays like WikiText tables. Just a cosmetic thing.
2. I've made the macro support data tables entered as WikiText tables. This breaks when fancy JavaScript things are required, but is good for simple data.
My goals for this project were two-fold:
1. An embedded system I've been developing produces data viewable using the Timeline chart type and I wanted to include examples of that chart in my TiddlyWiki that is documenting the project.
2. For my own amusement I wanted to plot a line chart of my firmware size over time.
3. Since developing my macro I've been considering creating a Timeline chart of firmware releases with clickable items going to the corresponding release notes that are already in the TiddlyWiki.
It seems that some people are wanting to dynamically analyse their TiddlyWiki and visualise aspects of it? I don't know if this helps, but the following worked to have data produced in a macro:
\define test()
['Year','Sales','Expenses'],['2004',1000,400],['2005',1170,460],['2006',660,1120],['2007',1030,540],
\end
<<googlechart data:'<<test>>' title:'Company Data' chart:'AreaChart' options:"hAxis:{title:'Year',titleTextStyle:{color:'#333'}},vAxis:{XminValue:0}">>
And if the tiddler has a field called "chartdata" with the value "['Year','Sales','Expenses'],['2004',1000,400],['2005',1170,460],['2006',660,1120],['2007',1030,540],", then the following also works:
<<googlechart data:{{!!chartdata}} title:'Company Data' chart:'AreaChart' options:"hAxis:{title:'Year',titleTextStyle:{color:'#333'}},vAxis:{XminValue:0}">>
Cheers,
Andrew