]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix span closed before appending the label 1450/head
authorNLZ13 <niels@kreable.com>
Sat, 12 Sep 2015 22:33:51 +0000 (00:33 +0200)
committerNLZ13 <niels@kreable.com>
Sat, 12 Sep 2015 22:33:51 +0000 (00:33 +0200)
docs/01-Line-Chart.md
docs/02-Bar-Chart.md
docs/03-Radar-Chart.md
docs/04-Polar-Area-Chart.md
docs/05-Pie-Doughnut-Chart.md

index 8d164ffb2bc7b5d81a55ba7761567fd8a8fd112c..a4b508e776b6cd540e04becf8b5ba3ae7e28b2c2 100644 (file)
@@ -100,7 +100,7 @@ These are the customisation options specific to Line charts. These options are m
        datasetFill : true,
        {% raw %}
        //String - A legend template
-       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
+       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
        {% endraw %}
 
        //Boolean - Whether to horizontally center the label and point dot inside the grid
index cc23f38b733d28e9fd80d85124c07868093f33b6..6911db900be896c77a38bdfc17a5730b5c4b1023 100644 (file)
@@ -84,7 +84,7 @@ These are the customisation options specific to Bar charts. These options are me
        barDatasetSpacing : 1,
        {% raw %}
        //String - A legend template
-       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].fillColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
+       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].fillColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
        {% endraw %}
 }
 ```
index 03dcf6e83b1bfd8ec25705f36823a4cffe0ecbff..aff5a00db279a3a12a477700f75587805106ad8c 100644 (file)
@@ -110,7 +110,7 @@ These are the customisation options specific to Radar charts. These options are
        datasetFill : true,
        {% raw %}
        //String - A legend template
-       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
+       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
        {% endraw %}
 }
 ```
index 016a45f3cc276e7b09a4819d48dec49eb14147e2..47c9a74d0c8c15ecf2c22c06f0bda5a6644ddcda 100644 (file)
@@ -102,7 +102,7 @@ These are the customisation options specific to Polar Area charts. These options
        animateScale : false,
        {% raw %}
        //String - A legend template
-       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"
+       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
        {% endraw %}
 }
 ```
index db2d9efd8997abc42248440a551d5c6c54d27a62..d50e2867cd45a039dcdb70b5ae42f9346928b032 100644 (file)
@@ -88,7 +88,7 @@ These are the customisation options specific to Pie & Doughnut charts. These opt
        animateScale : false,
        {% raw %}
        //String - A legend template
-       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"
+       legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
        {% endraw %}
 }
 ```