-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from nponarul/charts
chore: merge charts into dev
- Loading branch information
Showing
7 changed files
with
617 additions
and
363 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
div(ng-controller='chartsMainCtrl') | ||
h2 Charts | ||
div(ng-switch='currentPlot') | ||
div(ng-switch-when='none') | ||
span.alert Please choose variables and plot type. | ||
|
||
nvd3-line-chart#exampleId(ng-switch-when='line',data='data', width='{{width}}', height='{{height}}', showxaxis='true', showyaxis='true') | ||
svg | ||
|
||
nvd3-cumulative-line-chart#showXAxisExample(ng-switch-when='cumulativeLine',data='data', width='550', height='350', showxaxis='false', showyaxis='true', x='xFunction()', y='yFunction()', xaxistickformat='xAxisTickFormatFunction()', margin='{left:50,top:50,bottom:50,right:50}') | ||
svg | ||
|
||
div.container-fluid(ng-controller="mainChartsCtrl") | ||
h4 {{chartData.name}} | ||
div.row-fluid | ||
d3-charts | ||
scatter-plot |
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,17 +1,17 @@ | ||
div(ng-controller="chartsSidebarCtrl") | ||
form | ||
fieldset | ||
legend Project | ||
label fork | ||
input(ng-model="currentFork",disabled = true).input-small | ||
legend Plots | ||
label Choose one | ||
select(ng-model="currentPlot") | ||
option(ng-repeat='p in plots') {{p.label}} | ||
legend Variables | ||
label X | ||
select(ng-model="xVariable") | ||
option(ng-repeat="v in variables") {{v}} | ||
label Y | ||
select(ng-model="yVariable") | ||
option(ng-repeat="v in variables") {{v}} | ||
div(ng-controller="sideChartsCtrl") | ||
h4 Graphs | ||
select.form-control#chooseGraph(value="Choose a graph" ng-change="changeName()" ng-model="graphSelect" ng-options="g as g.name for g in graphs") | ||
h4 Variables | ||
div.form-inline | ||
div.form-horizontal | ||
label(for = "x") Add X | ||
select#x.form-control(ng-change="changeVar(selector1,headers,'x');" ng-model="selector1" ng-options="v as v.value for v in headers") | ||
div.form-horizontal | ||
label(for = "y") Add Y | ||
select#y.form-control(ng-change="changeVar(selector2,headers,'y');" ng-model="selector2" ng-options="v as v.value for v in headers") | ||
div.form-horizontal | ||
label(for = "z") Add Z | ||
select#z.form-control(ng-change="changeVar(selector3,headers,'z');" ng-model="selector3" ng-options="v as v.value for v in headers") | ||
|
||
//add variable options. | ||
button.btn.btn-default(ng-click="createGraph()") Graph |
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,8 @@ | ||
|
||
|
||
//Top of graph tabs | ||
li | ||
a(data-toggle ='tab' href= "{{name}}") {{name}} | ||
//Created by nponarul on 11/22/15. | ||
Oops, something went wrong.