From dca801584daa56c4dd87fdd10ffc54bec6f86134 Mon Sep 17 00:00:00 2001 From: fredsterss Date: Fri, 1 Aug 2014 14:05:00 -0700 Subject: [PATCH 1/2] component! --- .gitignore | 3 ++ component.json | 23 ++++++++++ samples/stacked-bar-using-component.html | 56 ++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 component.json create mode 100644 samples/stacked-bar-using-component.html diff --git a/.gitignore b/.gitignore index 3969d0a..b2df391 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ node_modules/* custom/* docs/index.md + +components/ +build/ \ No newline at end of file diff --git a/component.json b/component.json new file mode 100644 index 0000000..ccbf66c --- /dev/null +++ b/component.json @@ -0,0 +1,23 @@ +{ + "name": "stacked-bar", + "repo": "fredsterss/Chart.StackedBar.js", + "description": "Stacked bar for component/chart", + "version": "0.0.1", + "keywords": [ + "bar chart" + ], + "dependencies": {}, + "development": { + "component/chart": "*" + }, + "license": "MIT", + "main": "src/Chart.StackedBar.js", + "scripts": [ + "src/Chart.StackedBar.js" + ], + "remotes": [ + "https://raw.githubusercontent.com", + "https://cdn.rawgit.com", + "https://rawgit.com" + ] +} \ No newline at end of file diff --git a/samples/stacked-bar-using-component.html b/samples/stacked-bar-using-component.html new file mode 100644 index 0000000..76fc6df --- /dev/null +++ b/samples/stacked-bar-using-component.html @@ -0,0 +1,56 @@ + + + + Stacked Bar Chart + + + + +
+ +
+ + + + + From 0ef87a6bdcf436292a3ca4aae1b655ac9f80670b Mon Sep 17 00:00:00 2001 From: fredsterss Date: Fri, 1 Aug 2014 14:12:53 -0700 Subject: [PATCH 2/2] remove debug crap --- samples/stacked-bar-using-component.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/stacked-bar-using-component.html b/samples/stacked-bar-using-component.html index 76fc6df..92e06f3 100644 --- a/samples/stacked-bar-using-component.html +++ b/samples/stacked-bar-using-component.html @@ -41,12 +41,9 @@ ] }; window.onload = function(){ - // window.Chart = Chart = require('chart'); - console.log(Chart); require('stacked-bar') var ctx = document.getElementById("canvas").getContext("2d"); window.myBar = new Chart(ctx); - console.log(window.myBar); window.myBar.StackedBar(barChartData, { responsive : true });