From: Evert Timberg Date: Fri, 4 Dec 2015 03:03:39 +0000 (-0500) Subject: Add legends to sample files X-Git-Tag: 2.0.0-beta2~25^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8704ee37ded3d81c5ea747c5b181357f5fe209b;p=thirdparty%2FChart.js.git Add legends to sample files --- diff --git a/samples/bar.html b/samples/bar.html index 609f672f9..004e0738f 100644 --- a/samples/bar.html +++ b/samples/bar.html @@ -70,6 +70,13 @@ data: barChartData, options: { responsive: true, + legend: { + position: 'top', + title: { + display: true, + text: 'Our 3 Favorite Datasets' + } + }, } }); diff --git a/samples/doughnut.html b/samples/doughnut.html index facce521c..fa78edd8b 100644 --- a/samples/doughnut.html +++ b/samples/doughnut.html @@ -101,7 +101,14 @@ ] }, options: { - responsive: true + responsive: true, + legend: { + position: 'top', + title: { + display: true, + text: 'Our 2 Favorite Datasets' + } + }, } }; diff --git a/samples/polar-area.html b/samples/polar-area.html index de92f7b12..87de0ac09 100644 --- a/samples/polar-area.html +++ b/samples/polar-area.html @@ -59,6 +59,13 @@ }, options: { responsive: true, + legend: { + position: 'top', + title: { + display: true, + text: 'Our Favorite Dataset' + } + }, scale: { ticks: { beginAtZero: true diff --git a/samples/radar.html b/samples/radar.html index 39264cd5d..867605275 100644 --- a/samples/radar.html +++ b/samples/radar.html @@ -56,6 +56,13 @@ },] }, options: { + legend: { + position: 'top', + title: { + display: true, + text: 'Our 3 Favorite Datasets' + } + }, scale: { reverse: true, ticks: {