-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #1. Add dependencies, more foundational work.
- Loading branch information
1 parent
465066c
commit 46c9a7c
Showing
17 changed files
with
292 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
App.IndexController = Ember.ArrayController.extend({ | ||
EmberC3.IndexController = Ember.ArrayController.extend({ | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
App.Router.map(function () { | ||
EmberC3.Router.map(function () { | ||
// Add your routes here | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
App.ApplicationAdapter = DS.FixtureAdapter; | ||
EmberC3.ApplicationAdapter = DS.FixtureAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
// SASS! | ||
|
||
.well { | ||
background-color: gray; | ||
border-radius: 5px; | ||
|
||
li { | ||
padding: 5px; | ||
} | ||
html, body { | ||
margin: 50px 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div> | ||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#">Ember C3</a> | ||
</div> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li><a href="https://github.com/Glavin001/ember-c3">Source</a></li> | ||
<li><a href="https://github.com/Glavin001/ember-c3/issues">Issues/Suggestions</a></li> | ||
</ul> | ||
<div class="collapse navbar-collapse navbar-ex1-collapse"> | ||
</div> | ||
</nav> | ||
|
||
<div class="container" id="main"> | ||
{{outlet}} | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
<div class=""> | ||
<h1 class="">Welcome to ember-c3</h1> | ||
|
||
<ul class="well"> | ||
{{#each color in model}} | ||
<li style="color: {{color}}"> | ||
{{color}} | ||
</li> | ||
{{/each}} | ||
</ul> | ||
<button class="form-control" {{action "refresh"}}>Reload with random data</button> | ||
|
||
<h2>Donut</h2> | ||
{{!-- c3-donut data= --}} | ||
|
||
<h2>Area Spline</h2> | ||
{{!-- c3-area-spline data= --}} | ||
|
||
<h2>Timeseries</h2> | ||
{{!-- c3-timeseries data= --}} | ||
|
||
<h2>Bar Chart</h2> | ||
{{!-- c3-bar-chart data= --}} | ||
|
||
<h2>Line Chart</h2> | ||
{{!-- c3-line-chart data= --}} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
"name": "ember-c3", | ||
"version": "0.0.0", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"ember": "^1.3.2", | ||
"handlebars": "^1.2.1", | ||
"ember-data": "^1.0.0-beta.5" | ||
"ember-data": "^1.0.0-beta.5", | ||
"c3": "~0.1.42" | ||
}, | ||
"devDependencies": { | ||
"ember-mocha-adapter": "0.1.2" | ||
"ember-mocha-adapter": "0.1.2", | ||
"bootstrap": "~3.1.1" | ||
}, | ||
"main": "build/ember-plugin.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,124 @@ | ||
(function() { | ||
|
||
Ember.emberC3 = Ember.Namespace.create(); | ||
Ember.emberC3.VERSION = '0.0.0'; | ||
Ember.C3 = Ember.Namespace.create(); | ||
Ember.C3.VERSION = '0.0.0'; | ||
|
||
Ember.libraries.register('ember-c3', Ember.emberC3.VERSION); | ||
Ember.libraries.register('ember-c3', Ember.C3.VERSION); | ||
|
||
|
||
})(); | ||
|
||
(function() { | ||
|
||
/* Order and include as you please. */ | ||
'use strict'; | ||
/** | ||
C3 Chart component | ||
*/ | ||
Ember.C3.ChartComponent = Ember.Component.extend({ | ||
/** | ||
Element tag name | ||
*/ | ||
tagName: 'div', | ||
|
||
/** | ||
Element classes | ||
*/ | ||
classNames: [], | ||
|
||
/** | ||
The element to bind the chart to | ||
*/ | ||
bindTo: null, | ||
|
||
/** | ||
The data to display | ||
*/ | ||
data: {}, | ||
|
||
/** | ||
Axis specifications | ||
*/ | ||
axis: {}, | ||
|
||
/** | ||
Region specifications | ||
*/ | ||
regions: {}, | ||
|
||
/** | ||
Type of chart | ||
*/ | ||
type: null, | ||
bar: {}, | ||
pie: {}, | ||
donut: {}, | ||
|
||
/** | ||
Grid lines | ||
*/ | ||
grid:{}, | ||
|
||
/** | ||
Legend | ||
*/ | ||
legend: {}, | ||
|
||
/** | ||
Tooltip | ||
*/ | ||
tooltip: {} | ||
|
||
/** | ||
Subchart | ||
*/ | ||
subchart: {}, | ||
|
||
/** | ||
Zoom | ||
*/ | ||
zoom: {}, | ||
|
||
/** | ||
Size | ||
*/ | ||
size: {}, | ||
|
||
/** | ||
Padding | ||
*/ | ||
padding: {}, | ||
|
||
/** | ||
Color | ||
*/ | ||
color: {}, | ||
|
||
|
||
/** | ||
Transition | ||
*/ | ||
transition: {}, | ||
|
||
/** | ||
The Chart | ||
*/ | ||
chart: function() { | ||
var self = this; | ||
var chart = c3.generate({ | ||
|
||
}); | ||
}, | ||
|
||
/** | ||
Data Observer | ||
*/ | ||
dataDidChange: function() { | ||
|
||
}.observes('data') | ||
|
||
}); | ||
|
||
Ember.Handlebars.helper('c3-chart', Ember.C3.ChartComponent); | ||
|
||
|
||
})(); |
Oops, something went wrong.