Hi, I'm trying to use the Gantt Chart form Google Charts but can't seem to get it to run.
Based on my investigation, it may be due to some limitations of Google Charts or the specific version you're bundling with Pocket Query (not sure if you're bundling or loading from CDN?)
What version of GChart is included? I'm using Pocket Query 2.1
Here's my current template content:
#set($sprintLenghtInMs = 13 * 24 * 60 * 60 * 1000)
<script type="text/javascript">
PocketQuery.loadCharts(['gantt'], {
dataTable: [
#foreach ($story in $result)
#set( $Int = 0 )
#set( $year = $story.StartDate.substring(0,4) )
#set( $month = $Int.parseInt( $story.StartDate.substring(5,7).replaceFirst("^0+(?!$)","") ) - 1 )
#set( $day = $story.StartDate.substring(8,10).replaceFirst("^0+(?!$)","") )
["$story.Id", "$story.Title", "$story.Team", new Date($year, $month, $day), null, $sprintLenghtInMs, 100, null]#if($velocityHasNext),#end
#end
]
});
</script>
And get the following error:
?file=visualization&v=1.0&packages=gantt&async=2:3 Uncaught Error: Module: 'visualization' with package: 'gantt' not found!
Thanks for your awesome plugin!