Skip to content

Commit 7fcd4dc

Browse files
committedSep 14, 2015
Merge pull request chartjs#1450 from nlzet/fix-legend-template-doc
Fix span closed before appending the label
2 parents c38e852 + 8481811 commit 7fcd4dc

5 files changed

+5
-5
lines changed
 

‎docs/01-Line-Chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ These are the customisation options specific to Line charts. These options are m
100100
datasetFill : true,
101101
{% raw %}
102102
//String - A legend template
103-
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>"
103+
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>"
104104
{% endraw %}
105105

106106
//Boolean - Whether to horizontally center the label and point dot inside the grid

‎docs/02-Bar-Chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ These are the customisation options specific to Bar charts. These options are me
8484
barDatasetSpacing : 1,
8585
{% raw %}
8686
//String - A legend template
87-
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>"
87+
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>"
8888
{% endraw %}
8989
}
9090
```

‎docs/03-Radar-Chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ These are the customisation options specific to Radar charts. These options are
110110
datasetFill : true,
111111
{% raw %}
112112
//String - A legend template
113-
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>"
113+
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>"
114114
{% endraw %}
115115
}
116116
```

‎docs/04-Polar-Area-Chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ These are the customisation options specific to Polar Area charts. These options
102102
animateScale : false,
103103
{% raw %}
104104
//String - A legend template
105-
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>"
105+
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>"
106106
{% endraw %}
107107
}
108108
```

‎docs/05-Pie-Doughnut-Chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ These are the customisation options specific to Pie & Doughnut charts. These opt
8888
animateScale : false,
8989
{% raw %}
9090
//String - A legend template
91-
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>"
91+
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>"
9292
{% endraw %}
9393
}
9494
```

0 commit comments

Comments
 (0)
Please sign in to comment.