Skip to content

Instantly share code, notes, and snippets.

@Noxville
Created January 3, 2020 01:35
Show Gist options
  • Save Noxville/9e9c698148befebc8960abcff5d1094e to your computer and use it in GitHub Desktop.
Save Noxville/9e9c698148befebc8960abcff5d1094e to your computer and use it in GitHub Desktop.
datasets: [
<g:each in="${data.entrySet().sort { data.get(it.key).get(lastDate).rating }.reverse()}" var="te" status="teamEntryIndex">
{
data: [
<g:each in="${dR}" var="d" status="dateIndex">
<g:if test="${te.value.get(d)?.rating}">
<g:formatNumber number="${te.value.get(d)?.rating}" format="0.00"/>
</g:if>
<g:if test="${dateIndex != dR.size() - 1}">,</g:if>
</g:each>
],
fill: false,
label: '${te.key.name}'
,
borderColor: colors[${teamEntryIndex}],
backgroundColor: colors[${teamEntryIndex}],
borderWidth: 1
}
<g:if test="${teamEntryIndex != data.entrySet().size() - 1}">,</g:if>
</g:each>
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment