Skip to content

Commit 2db5155

Browse files
committed
[docs] Add a CodePen demo
1 parent 1dbf54d commit 2db5155

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
<p align="center">
77
<p>GitHub-inspired modern, intuitive and responsive charts with zero dependencies</p>
88
<a href="https://frappe.github.io/charts">
9-
<b>Explore Demos »</b>
9+
<b>Explore Demos » | </b>
10+
</a>
11+
<a href="https://codepen.io/pratu16x7/pen/wjKBoq">
12+
<b> Edit at CodePen »</b>
1013
</a>
1114
</p>
1215
</div>

docs/index.html

+14-4
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ <h6 class="margin-vertical-rem">Create a chart</h6>
5656

5757
datasets: [
5858
{
59-
label: "Some Data", chartType: 'bar',
59+
name: "Some Data", chartType: 'bar',
6060
values: [25, 40, 30, 35, 8, 52, 17, -4]
6161
},
6262
{
63-
label: "Another Set", chartType: 'bar',
63+
name: "Another Set", chartType: 'bar',
6464
values: [25, 50, -10, 15, 18, 32, 27, 14]
6565
},
6666
{
67-
label: "Yet Another", chartType: 'line',
67+
name: "Yet Another", chartType: 'line',
6868
values: [15, 20, -3, -15, 58, 12, -17, 37]
6969
}
7070
],
@@ -78,7 +78,7 @@ <h6 class="margin-vertical-rem">Create a chart</h6>
7878
title: "My Awesome Chart",
7979
type: 'axis-mixed', // or 'bar', 'line', 'pie', 'percentage'
8080
height: 300,
81-
colors: ['purple', '#ffa3ef', 'red'],
81+
colors: ['purple', '#ffa3ef', 'light-blue'],
8282

8383
tooltipOptions: {
8484
formatTooltipX: d => (d + '').toUpperCase(),
@@ -230,6 +230,16 @@ <h6 class="margin-vertical-rem">
230230
</div>
231231
</div>
232232

233+
<div class="col-sm-10 push-sm-1">
234+
<p data-height="299" data-theme-id="light" data-slug-hash="wjKBoq" data-default-tab="js,result"
235+
data-user="pratu16x7" data-embed-version="2" data-pen-title="Frappe Charts Demo" class="codepen">
236+
See the Pen <a href="https://codepen.io/pratu16x7/pen/wjKBoq/">Frappe Charts Demo</a>
237+
by Prateeksha Singh (<a href="https://codepen.io/pratu16x7">@pratu16x7</a>) on
238+
<a href="https://codepen.io">CodePen</a>.
239+
</p>
240+
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
241+
</div>
242+
233243
<div class="col-sm-10 push-sm-1">
234244
<div class="dashboard-section">
235245
<h6 class="margin-vertical-rem">Available options:</h6>

0 commit comments

Comments
 (0)