Further to the above, here is the code within a tiddler that
examplifies my dliemna:
---------------------------------------------------------------------------------------------------------------------------------------------
<html>
<p>Sparkline with dynamic data: <span
class="dynamicsparkline">Loading..</span></p>
</html>
<<forEachTiddler
where
'tiddler.tags.contains("journal")'
script
'function writeExpenseRow(index, tiddler, context) { var result =
""; result+= tiddler.data("tramadol"); result += ","; return
result;}'
write
'writeExpenseRow(index, tiddler, context)'
>>
<script>
var myvalues =
[14,10,8,5,7,4,2,21,18,10,8,15,7,4,14,16,0,8,5,17,4,7,21,8,10,8,15,7,14];
jQuery('.dynamicsparkline').sparkline(myvalues, {height: '300px',
width: '300px', spotRadius: '5'});
</script>
-----------------------------------------------------------------------------------------------------------------------------------------------------
As can be seen, there are three separate sections: html, the macro and
the script. How can I assign the output of the macro to the var
myvalues in the script part.
I think I am thinking about this the wrong way, but I am unclear on
how to think differently. :)
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.