Skip to content

Commit

Permalink
[docs] Add a CodePen demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pratu16x7 committed Apr 21, 2018
1 parent 1dbf54d commit 423dc52
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<p align="center">
<p>GitHub-inspired modern, intuitive and responsive charts with zero dependencies</p>
<a href="https://frappe.github.io/charts">
<b>Explore Demos »</b>
<b>Explore Demos » </b>
</a>
<a href="https://codepen.io/pratu16x7/pen/wjKBoq">
<b> Edit at CodePen »</b>
</a>
</p>
</div>
Expand Down
18 changes: 14 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ <h6 class="margin-vertical-rem">Create a chart</h6>

datasets: [
{
label: "Some Data", chartType: 'bar',
name: "Some Data", chartType: 'bar',
values: [25, 40, 30, 35, 8, 52, 17, -4]
},
{
label: "Another Set", chartType: 'bar',
name: "Another Set", chartType: 'bar',
values: [25, 50, -10, 15, 18, 32, 27, 14]
},
{
label: "Yet Another", chartType: 'line',
name: "Yet Another", chartType: 'line',
values: [15, 20, -3, -15, 58, 12, -17, 37]
}
],
Expand All @@ -78,7 +78,7 @@ <h6 class="margin-vertical-rem">Create a chart</h6>
title: "My Awesome Chart",
type: 'axis-mixed', // or 'bar', 'line', 'pie', 'percentage'
height: 300,
colors: ['purple', '#ffa3ef', 'red'],
colors: ['purple', '#ffa3ef', 'light-blue'],

tooltipOptions: {
formatTooltipX: d => (d + '').toUpperCase(),
Expand Down Expand Up @@ -230,6 +230,16 @@ <h6 class="margin-vertical-rem">
</div>
</div>

<div class="col-sm-10 push-sm-1">
<p data-height="299" data-theme-id="light" data-slug-hash="wjKBoq" data-default-tab="js,result"
data-user="pratu16x7" data-embed-version="2" data-pen-title="Frappe Charts Demo" class="codepen">
See the Pen <a href="https://codepen.io/pratu16x7/pen/wjKBoq/">Frappe Charts Demo</a>
by Prateeksha Singh (<a href="https://codepen.io/pratu16x7">@pratu16x7</a>) on
<a href="https://codepen.io">CodePen</a>.
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
</div>

<div class="col-sm-10 push-sm-1">
<div class="dashboard-section">
<h6 class="margin-vertical-rem">Available options:</h6>
Expand Down

0 comments on commit 423dc52

Please sign in to comment.