Skip to content

Commit ea8bfb4

Browse files
committed
Update index.html to add ChartJsProvider and setOptions for settings different colours.
Handed-picked from @ByJC
1 parent da8a833 commit ea8bfb4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

examples/charts.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ <h3>Colours</h3>
112112
<li><span style="background-color: rgba(148,159,177,1)"></span>Grey</li>
113113
<li><span style="background-color: rgba(77,83,96,1)"></span>Dark Grey</li>
114114
</ol>
115+
<p>You can also use the provider: <code>ChartJsProvider</code> in a <code>.config()</code></p>
116+
<p><pre><code>(function (ChartJsProvider) {
117+
ChartJsProvider.setOptions({ colours : [ '#803690', '#00ADF9', '#DCDCDC', '#46BFBD', '#FDB45C', '#949FB1', '#4D5360'] });
118+
}); </code></pre></p>
115119
</section>
116120
<section id="directives">
117121
<div class="page-header">

examples/charts.template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ <h3>Colours</h3>
112112
<li><span style="background-color: rgba(148,159,177,1)"></span>Grey</li>
113113
<li><span style="background-color: rgba(77,83,96,1)"></span>Dark Grey</li>
114114
</ol>
115+
<p>You can also use the provider: <code>ChartJsProvider</code> in a <code>.config()</code></p>
116+
<p><pre><code>(function (ChartJsProvider) {
117+
ChartJsProvider.setOptions({ colours : [ '#803690', '#00ADF9', '#DCDCDC', '#46BFBD', '#FDB45C', '#949FB1', '#4D5360'] });
118+
}); </code></pre></p>
115119
</section>
116120
<section id="directives">
117121
<div class="page-header">

0 commit comments

Comments
 (0)