Hi there !! I'm playing around with some js charts libraries and I use cheetah to fill up my scripts with the data.
Here is my code: columns: [ ['x' #for $record in $span($hour_delta=32).records , ${record.dateTime.raw}000 #end for ], ['outTemp' #for $record in $span($hour_delta=32).records #if $record.outTemp.has_data , #echo '%.2f' % $record.outTemp.raw# #else , null #end if #end for ], it works well, but output is like this: columns: [ ['x' , 1522804500000 , 1522804800000 , 1522805100000 , 1522805400000 , 1522805700000 // Here I remove many lines, for easyer reading... , 1522918200000 , 1522918500000 , 1522918800000 , 1522919100000 , 1522919400000 ], ['outTemp' , 10.75 , 10.74 , 10.69 , 10.68 , 10.61 // Here I remove many lines, for easyer reading... , 10.57 , 14.22 , 14.04 , 14.19 , 14.79 , 15.04 ], this make the output file very loooong. It would be more readable and comfortable to have it like this: columns: [ ['x' , 1522804500000, 1522804800000, 1522805100000, 1522805400000, 1522805700000 ....... ], ['outTemp', 10.75 , 10.74 , 10.69 , 10.68 , 10.61 ....... ], It looks stupide, but whatever I tried, I was not able to find the suitable cheetah syntax to output this way :-( Help is welcome ! -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.