]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Change lineColor to strokeColor in legendTemplate for Line, Bar, and Radar charts
authorJohn Heroy <johnheroy@gmail.com>
Tue, 19 Aug 2014 14:42:39 +0000 (22:42 +0800)
committerJohn Heroy <johnheroy@gmail.com>
Tue, 19 Aug 2014 14:42:39 +0000 (22:42 +0800)
docs/01-Line-Chart.md
docs/02-Bar-Chart.md
docs/03-Radar-Chart.md

index 3dc60633744efc6a2156e860eaf8589a8e82f43c..4a0306d069228989437ed224c3bf0c621f9ced1b 100644 (file)
@@ -94,7 +94,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].lineColor%>\"></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%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
        {% endraw %}
 };
 ```
index b4253e7463cd9c5cc49e859d7036698382b5e5f7..38b2ea0a6258da0183ce230a9ca29e7b304fdee9 100644 (file)
@@ -78,7 +78,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].lineColor%>\"></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%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
        {% endraw %}
 }
 ```
index 0707444b7b45f7cd9a1e9e50b81f56ecca66c92f..03dcf6e83b1bfd8ec25705f36823a4cffe0ecbff 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].lineColor%>\"></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%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"
        {% endraw %}
 }
 ```