On 1/08/2014 3:37 AM, G Z wrote:
> doesn't work because then my charts dont appear when i enclose the
> script tag.
Can you put the js into a file and use the template to include it?
> line *162*
>
>
> Invalid block tag: '><li><span'
>
> 152 var iopsChart =
> document.getElementById('iops').getContext('2d');
> 153 new Chart(iopsChart).Line(iopsData,{
> 154 bezierCurve: false,
> 155 datasetFill : false,
> 156 });
> 157
> 158 var cpuChart = document.getElementById('cpu').getContext('2d');
> 159 new Chart(cpuChart).Line(cpuData,{
> 160 bezierCurve: false,
> 161 datasetFill : false,
> 162 legendTemplate : "<ul
> class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0;
> i<datasets.length; i++){%><li><span
> style=\"background-color:<%=datasets[i].lineColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
>
> 163
> 164 });
> 165 }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
django-users...@googlegroups.com
> <mailto:
django-users...@googlegroups.com>.
> To post to this group, send email to
django...@googlegroups.com
> <mailto:
django...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/django-users.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/django-users/b5db3b20-bceb-4b72-bc83-d52adb948b8c%40googlegroups.com
> <
https://groups.google.com/d/msgid/django-users/b5db3b20-bceb-4b72-bc83-d52adb948b8c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.