Created
November 1, 2016 20:17
-
-
Save starsinmypockets/783ae55c0bf538b02a4fa62c91095d37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| title: 'Hello World', | |
| components: [ | |
| { | |
| type: 'Chart', | |
| cardStyle: 'Chart', | |
| header: 'My Pie Chart', | |
| data: [[{x: 1, y: 40}, {x: 2, y: 40}, {x: 3, y: 20}]], | |
| dataHandlers: ['NVD3.toPieChartSeries'], | |
| settings: { | |
| type: 'pieChart', | |
| x: 'x', | |
| y: 'y', | |
| height: '600' | |
| }, | |
| }, | |
| { | |
| type: 'Region', | |
| className: 'row', // row class is used by twitter Bootstrap | |
| children: [ | |
| { | |
| type: 'Metric', | |
| cardStyle: 'Metric', | |
| iconClass: 'fa fa-level-up', | |
| className: 'col-md-4', // col class used by twitter Bootstrap | |
| caption: 'Test A', | |
| data: ['A'] // an arbitrary value for our example | |
| }, | |
| { | |
| type: 'Metric', | |
| cardStyle: 'Metric', | |
| iconClass: 'fa fa-level-down', | |
| className: 'col-md-4', | |
| background: '#53ACC9', | |
| caption: 'Test B', | |
| data: ['B'] | |
| }, | |
| { | |
| type: 'Metric', | |
| cardStyle: 'Metric', | |
| iconClass: 'fa fa-fire', | |
| caption: 'Test C', | |
| background: '#C97053', | |
| className: 'col-md-4', | |
| data: ['C'] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment