From 423dc524d7d31038a7118f360c039ba22aa8a458 Mon Sep 17 00:00:00 2001
From: Prateeksha Singh
Date: Sat, 21 Apr 2018 19:13:47 +0530
Subject: [PATCH] [docs] Add a CodePen demo
---
README.md | 5 ++++-
docs/index.html | 18 ++++++++++++++----
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index cb55f84..9d844f4 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,10 @@
GitHub-inspired modern, intuitive and responsive charts with zero dependencies
- Explore Demos »
+ Explore Demos »
+
+
+ Edit at CodePen »
diff --git a/docs/index.html b/docs/index.html
index a38c6d5..4d4ec75 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -56,15 +56,15 @@
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]
}
],
@@ -78,7 +78,7 @@
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(),
@@ -230,6 +230,16 @@
+
+