patternfly-sass 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc4f69f2482548e39dcb4f28c5f54e8376cbc06d
4
- data.tar.gz: 67c08f78f8ad528f00a7df4bda28829cf7eca4c3
3
+ metadata.gz: 65b5ba7ce18a791e6a00cf3b74ec364acd966025
4
+ data.tar.gz: e5f60112bca2ce8b5ff467a0b3be1faefd21db03
5
5
  SHA512:
6
- metadata.gz: f437a9735bea638f04a7955a6f34d602594564b78aa024568da154593d6cbb226b088c5c5ccd5c1dac543857af0955ed8e045fcdc02eb293a280def24a91ebe3
7
- data.tar.gz: 1181d898058ed6f7cd65e945d7b2a8fa8ee0ce4fd49f2fc7e185c7741240b58a2a6dee2e9be09ad0f4459ea172218b83f94d79d1a38bfe1dbbb9790aadc2a8d1
6
+ metadata.gz: 3fdc22b016172f5528888fccc3afba0ce508e7a7535c25ed3d543973b4501cf8e7bad7db36f8fe4906049d50973b5b9baade57abde0b2906b0c74d3ddc7e3e9e
7
+ data.tar.gz: 6b4b1e2b5c2dfbc289f96070afb0eed6af4336de532c0536ab4f418bb52a93c8dcd47d868b0329e248aef2246cc687b5f61fa1d7d5e00d270e89a9bdb034fca8
data/README.md CHANGED
@@ -50,6 +50,7 @@ Require PatternFly Javascripts in `app/assets/javascripts/application.js`:
50
50
 
51
51
  ```js
52
52
  //= require jquery
53
+ //= require bootstrap
53
54
  //= require patternfly
54
55
  ```
55
56
 
@@ -187,4 +188,4 @@ patternfly-sass's converter is a fork of [bootstrap-sass](https://github.com/twb
187
188
  [version]: https://github.com/patternfly/patternfly-sass/blob/master/lib/patternfly-sass/version.rb
188
189
  [contrib]: https://github.com/patternfly/patternfly-sass/graphs/contributors
189
190
  [antirequire]: https://github.com/bootstrap/bootstrap-sass/issues/79#issuecomment-4428595
190
- [autoprefixer]: https://github.com/ai/autoprefixer
191
+ [autoprefixer]: https://github.com/ai/autoprefixer
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ task :serve => :deps do
47
47
  '/less/dist/css' => 'spec/html/dist/css',
48
48
  '/less/dist/fonts' => 'assets/fonts/patternfly',
49
49
  '/less/dist/img' => 'assets/images/patternfly',
50
- '/less/dist/js' => 'assets/javascripts/patternfly',
50
+ '/less/dist/js' => 'assets/javascripts',
51
51
  '/less/components' => 'spec/components',
52
52
  '/less/components/bootstrap/dist/js' => File.join(BOOTSTRAP_GEM_ROOT, 'assets', 'javascripts'),
53
53
  '/less/components/font-awesome/fonts' => File.join(FONTAWESOME_GEM_ROOT, 'assets', 'fonts', 'font-awesome'),
@@ -55,7 +55,7 @@ task :serve => :deps do
55
55
  '/sass/dist/fonts' => 'assets/fonts',
56
56
  '/sass/dist/img' => 'assets/images/patternfly',
57
57
  '/sass/dist/images' => 'assets/images',
58
- '/sass/dist/js' => 'assets/javascripts/patternfly',
58
+ '/sass/dist/js' => 'assets/javascripts',
59
59
  '/sass/dist/css' => 'tmp',
60
60
  '/sass/components' => 'spec/components',
61
61
  '/sass/components/bootstrap/dist/js' => File.join(BOOTSTRAP_GEM_ROOT, 'assets', 'javascripts'),
@@ -67,6 +67,9 @@
67
67
  /* Bootstrap-Select */
68
68
  @import "patternfly/bootstrap-select-css";
69
69
 
70
+ /* C3 charts*/
71
+ @import "patternfly/c3-css";
72
+
70
73
  /* PatternFly overrides and new stuff */
71
74
 
72
75
  @import "patternfly/mixins";
@@ -78,6 +81,7 @@
78
81
  @import "patternfly/bootstrap-treeview";
79
82
  @import "patternfly/breadcrumbs";
80
83
  @import "patternfly/buttons";
84
+ @import "patternfly/charts";
81
85
  @import "patternfly/close";
82
86
  @import "patternfly/datatables";
83
87
  @import "patternfly/dropdowns";
@@ -0,0 +1,71 @@
1
+ //
2
+ // Charts
3
+ // --------------------------------------------------
4
+
5
+ .c3 {
6
+ path {
7
+ stroke: $table-border-color;
8
+ }
9
+ svg {
10
+ font-family: $font-family-base;
11
+ }
12
+ }
13
+
14
+ .c3-axis-x .tick line {
15
+ stroke: $table-border-color;
16
+ }
17
+
18
+ .c3-axis-y .tick line {
19
+ display: none;
20
+ }
21
+
22
+ .c3-chart-arc path {
23
+ stroke: #fff;
24
+ }
25
+
26
+ .c3-grid line {
27
+ stroke: $table-border-color;
28
+ }
29
+
30
+ .c3-line {
31
+ stroke-width: 2px;
32
+ }
33
+
34
+ .c3-tooltip {
35
+ background: $tooltip-bg;
36
+ @include box-shadow(none);
37
+ @include opacity($tooltip-opacity);
38
+
39
+ td {
40
+ background: transparent;
41
+ border: 0;
42
+ color: #fff;
43
+ font-size: $font-size-base;
44
+ padding: 5px 10px;
45
+ }
46
+
47
+ th {
48
+ background: transparent;
49
+ font-size: $font-size-base;
50
+ padding: 5px 10px 0;
51
+ }
52
+
53
+ tr {
54
+ border: 0;
55
+ + tr > td {
56
+ padding-top: 0;
57
+ }
58
+ }
59
+ }
60
+
61
+ .c3-tooltip-sparkline {
62
+ background: $tooltip-bg;
63
+ color: #fff;
64
+ @include opacity($tooltip-opacity);
65
+ padding: 2px 6px;
66
+ }
67
+
68
+ .c3-xgrid, .c3-ygrid {
69
+ stroke-dasharray: 0 0;
70
+ }
71
+
@@ -0,0 +1,158 @@
1
+ /*-- Chart --*/
2
+ .c3 svg {
3
+ font: 10px sans-serif; }
4
+
5
+ .c3 path, .c3 line {
6
+ fill: none;
7
+ stroke: #000; }
8
+
9
+ .c3 text {
10
+ -webkit-user-select: none;
11
+ -moz-user-select: none;
12
+ user-select: none; }
13
+
14
+ .c3-legend-item-tile, .c3-xgrid-focus, .c3-ygrid, .c3-event-rect, .c3-bars path {
15
+ shape-rendering: crispEdges; }
16
+
17
+ .c3-chart-arc path {
18
+ stroke: #fff; }
19
+
20
+ .c3-chart-arc text {
21
+ fill: #fff;
22
+ font-size: 13px; }
23
+
24
+ /*-- Axis --*/
25
+ /*-- Grid --*/
26
+ .c3-grid line {
27
+ stroke: #aaa; }
28
+
29
+ .c3-grid text {
30
+ fill: #aaa; }
31
+
32
+ .c3-xgrid, .c3-ygrid {
33
+ stroke-dasharray: 3 3; }
34
+
35
+ /*-- Text on Chart --*/
36
+ .c3-text.c3-empty {
37
+ fill: #808080;
38
+ font-size: 2em; }
39
+
40
+ /*-- Line --*/
41
+ .c3-line {
42
+ stroke-width: 1px; }
43
+
44
+ /*-- Point --*/
45
+ .c3-circle._expanded_ {
46
+ stroke-width: 1px;
47
+ stroke: white; }
48
+
49
+ .c3-selected-circle {
50
+ fill: white;
51
+ stroke-width: 2px; }
52
+
53
+ /*-- Bar --*/
54
+ .c3-bar {
55
+ stroke-width: 0; }
56
+
57
+ .c3-bar._expanded_ {
58
+ fill-opacity: 0.75; }
59
+
60
+ /*-- Focus --*/
61
+ .c3-target.c3-focused {
62
+ opacity: 1; }
63
+
64
+ .c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
65
+ stroke-width: 2px; }
66
+
67
+ .c3-target.c3-defocused {
68
+ opacity: 0.3 !important; }
69
+
70
+ /*-- Region --*/
71
+ .c3-region {
72
+ fill: steelblue;
73
+ fill-opacity: 0.1; }
74
+
75
+ /*-- Brush --*/
76
+ .c3-brush .extent {
77
+ fill-opacity: 0.1; }
78
+
79
+ /*-- Select - Drag --*/
80
+ /*-- Legend --*/
81
+ .c3-legend-item {
82
+ font-size: 12px; }
83
+
84
+ .c3-legend-item-hidden {
85
+ opacity: 0.15; }
86
+
87
+ .c3-legend-background {
88
+ opacity: 0.75;
89
+ fill: white;
90
+ stroke: lightgray;
91
+ stroke-width: 1; }
92
+
93
+ /*-- Tooltip --*/
94
+ .c3-tooltip-container {
95
+ z-index: 10; }
96
+
97
+ .c3-tooltip {
98
+ border-collapse: collapse;
99
+ border-spacing: 0;
100
+ background-color: #fff;
101
+ empty-cells: show;
102
+ -webkit-box-shadow: 7px 7px 12px -9px #777777;
103
+ -moz-box-shadow: 7px 7px 12px -9px #777777;
104
+ box-shadow: 7px 7px 12px -9px #777777;
105
+ opacity: 0.9; }
106
+
107
+ .c3-tooltip tr {
108
+ border: 1px solid #CCC; }
109
+
110
+ .c3-tooltip th {
111
+ background-color: #aaa;
112
+ font-size: 14px;
113
+ padding: 2px 5px;
114
+ text-align: left;
115
+ color: #FFF; }
116
+
117
+ .c3-tooltip td {
118
+ font-size: 13px;
119
+ padding: 3px 6px;
120
+ background-color: #fff;
121
+ border-left: 1px dotted #999; }
122
+
123
+ .c3-tooltip td > span {
124
+ display: inline-block;
125
+ width: 10px;
126
+ height: 10px;
127
+ margin-right: 6px; }
128
+
129
+ .c3-tooltip td.value {
130
+ text-align: right; }
131
+
132
+ /*-- Area --*/
133
+ .c3-area {
134
+ stroke-width: 0;
135
+ opacity: 0.2; }
136
+
137
+ /*-- Arc --*/
138
+ .c3-chart-arcs-title {
139
+ dominant-baseline: middle;
140
+ font-size: 1.3em; }
141
+
142
+ .c3-chart-arcs .c3-chart-arcs-background {
143
+ fill: #e0e0e0;
144
+ stroke: none; }
145
+
146
+ .c3-chart-arcs .c3-chart-arcs-gauge-unit {
147
+ fill: #000;
148
+ font-size: 16px; }
149
+
150
+ .c3-chart-arcs .c3-chart-arcs-gauge-max {
151
+ fill: #777; }
152
+
153
+ .c3-chart-arcs .c3-chart-arcs-gauge-min {
154
+ fill: #777; }
155
+
156
+ .c3-chart-arc .c3-gauge-value {
157
+ fill: #000;
158
+ /* font-size: 28px !important;*/ }
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "PatternFlySass",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://www.patternfly.org",
6
6
  "authors": [
@@ -13,13 +13,13 @@
13
13
  "**/.*",
14
14
  "node_modules",
15
15
  "bower_components",
16
- "spec",
17
- "tests"
16
+ "spec"
18
17
  ],
19
18
  "devDependencies": {
20
19
  "bootstrap-combobox": "~1.1.6",
21
20
  "bootstrap-select": "~1.5.4",
22
21
  "bootstrap-treeview": "~1.0.1",
22
+ "c3": "~0.4.10",
23
23
  "datatables": "~1.10.7",
24
24
  "datatables-colreorder": "~1.1.3",
25
25
  "datatables-colvis": "~1.1.2",
@@ -1,4 +1,4 @@
1
1
  module Patternfly
2
- VERSION = '1.2.1'
3
- PATTERNFLY_SHA = 'fe296689ea3af0b4b9139f07c16037b2ad1cfe80'
2
+ VERSION = '1.3.0'
3
+ PATTERNFLY_SHA = '3788ee1f5e9f0ae4061925e671d83572f7bf2a1e'
4
4
  end
@@ -0,0 +1,382 @@
1
+ <!DOCTYPE html>
2
+ <!--[if IE 8]><html class="ie8"><![endif]-->
3
+ <!--[if IE 9]><html class="ie9"><![endif]-->
4
+ <!--[if gt IE 9]><!-->
5
+ <html>
6
+ <!--<![endif]-->
7
+ <head>
8
+ <title>Charts - PatternFly</title>
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
+ <link rel="shortcut icon" href="../dist/img/favicon.ico">
11
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../dist/img/apple-touch-icon-144-precomposed.png">
12
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../dist/img/apple-touch-icon-114-precomposed.png">
13
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../dist/img/apple-touch-icon-72-precomposed.png">
14
+ <link rel="apple-touch-icon-precomposed" href="../dist/img/apple-touch-icon-57-precomposed.png">
15
+ <link href="../dist/css/patternfly.min.css" rel="stylesheet" media="screen, print">
16
+ <link href="tests.css" rel="stylesheet" media="screen, print">
17
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
18
+ <!--[if lt IE 9]>
19
+ <script src="../components/html5shiv/dist/html5shiv.min.js"></script>
20
+ <script src="../components/respond/dest/respond.min.js"></script>
21
+ <![endif]-->
22
+ <!-- IE8 requires jQuery and Bootstrap JS to load in head to prevent rendering bugs -->
23
+ <!-- IE8 requires jQuery v1.x -->
24
+ <script src="../components/jquery/dist/jquery.min.js"></script>
25
+ <script src="../components/bootstrap/dist/js/bootstrap.min.js"></script>
26
+ <script src="../components/c3/c3.min.js"></script>
27
+ <script src="../components/d3/d3.min.js"></script>
28
+ <script src="../dist/js/patternfly.min.js"></script>
29
+ </head>
30
+ <body>
31
+ <div class="container">
32
+ <div class="page-header">
33
+ <h1>Charts</h1>
34
+ </div>
35
+ <div class="alert alert-warning">
36
+ <span class="pficon pficon-warning-triangle-o"></span>
37
+ These examples are included for development testing purposes. For official documentation, see <a href="https://www.patternfly.org" class="alert-link">https://www.patternfly.org</a>, <a href="http://getbootstrap.com" class="alert-link">http://getbootstrap.com</a>, and <a href="http://http://c3js.org/">http://c3js.org/</a>
38
+ </div>
39
+ <hr>
40
+ <h2>Line Chart</h2>
41
+ <h3>Default C3.js Colors <small> don't use these</small></h3>
42
+ <div id="chart"></div>
43
+ <h3>Patternfly Colors <small>use these</small></h3>
44
+ <div id="chart1"></div>
45
+ <h2>Sparkline</h2>
46
+ <div class="row">
47
+ <div class="col-md-4">
48
+ <div id="chart2"></div>
49
+ <div class="pull-right">91%</div>
50
+ <div class="pull-left">Less than one year remaining</div>
51
+ </div>
52
+ </div>
53
+ <h2>Spline Chart</h2>
54
+ <div id="chart3"></div>
55
+ <h2>Area Chart</h2>
56
+ <div id="chart4"></div>
57
+ <h2>Stacked Area Chart</h2>
58
+ <div id="chart5"></div>
59
+ <h2>Bar Chart</h2>
60
+ <div id="chart6"></div>
61
+ <h2>Stacked Bar Chart, Rotated</h2>
62
+ <div id="chart7"></div>
63
+ <h2>Donut Chart</h2>
64
+ <div id="chart8"></div>
65
+ <script>
66
+ var chart = c3.generate({
67
+ axis: {
68
+ x: {
69
+ tick: {
70
+ outer: false
71
+ }
72
+ },
73
+ y: {
74
+ tick: {
75
+ outer: false
76
+ }
77
+ }
78
+ },
79
+ bindto: '#chart',
80
+ data: {
81
+ columns: [
82
+ ['data1', 30, 200, 100, 400, 150, 250],
83
+ ['data2', 50, 220, 310, 240, 115, 25],
84
+ ['data3', 70, 100, 390, 295, 170, 220],
85
+ ['data4', 10, 340, 30, 290, 35, 20],
86
+ ['data5', 90, 150, 160, 165, 180, 5]
87
+ ]
88
+ },
89
+ grid: {
90
+ y: {
91
+ show: true
92
+ }
93
+ },
94
+ point: {
95
+ r: 4
96
+ }
97
+ });
98
+ var chart1 = c3.generate({
99
+ axis: {
100
+ x: {
101
+ tick: {
102
+ outer: false
103
+ }
104
+ },
105
+ y: {
106
+ tick: {
107
+ outer: false
108
+ }
109
+ }
110
+ },
111
+ bindto: '#chart1',
112
+ color: {
113
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
114
+ },
115
+ data: {
116
+ columns: [
117
+ ['data1', 30, 200, 100, 400, 150, 250],
118
+ ['data2', 50, 220, 310, 240, 115, 25],
119
+ ['data3', 70, 100, 390, 295, 170, 220],
120
+ ['data4', 10, 340, 30, 290, 35, 20],
121
+ ['data5', 90, 150, 160, 165, 180, 5]
122
+ ]
123
+ },
124
+ grid: {
125
+ y: {
126
+ show: true
127
+ }
128
+ },
129
+ point: {
130
+ r: 4
131
+ }
132
+ });
133
+ var chart2 = c3.generate({
134
+ axis: {
135
+ x: {
136
+ show: false
137
+ },
138
+ y: {
139
+ show: false
140
+ }
141
+ },
142
+ bindto: '#chart2',
143
+ color: {
144
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
145
+ },
146
+ data: {
147
+ columns: [
148
+ ['Less than one year remaining', 10, 14, 12, 20, 31, 27, 44, 36, 52, 55, 62, 68, 69, 88, 74, 88, 91],
149
+ ],
150
+ type: 'area'
151
+ },
152
+ legend: {
153
+ show: false
154
+ },
155
+ point: {
156
+ r: 1,
157
+ focus: {
158
+ expand: {
159
+ r: 4
160
+ }
161
+ }
162
+ },
163
+ size: {
164
+ height: 80
165
+ },
166
+ tooltip: {
167
+ // because a sparkline should only contain a single data column, the tooltip will only work for a single data column
168
+ contents: function (d, defaultTitleFormat, defaultValueFormat, color) {
169
+ for (i = 0; i < d.length; i++) {
170
+ return '<span class="c3-tooltip-sparkline">' + d[i].value + '%' + '</span>'
171
+ }
172
+ }
173
+ }
174
+ });
175
+ var chart3 = c3.generate({
176
+ axis: {
177
+ x: {
178
+ tick: {
179
+ outer: false
180
+ }
181
+ },
182
+ y: {
183
+ tick: {
184
+ outer: false
185
+ }
186
+ }
187
+ },
188
+ bindto: '#chart3',
189
+ color: {
190
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
191
+ },
192
+ data: {
193
+ columns: [
194
+ ['data1', 30, 200, 100, 400, 150, 250],
195
+ ['data2', 50, 220, 310, 240, 115, 25],
196
+ ['data3', 70, 100, 390, 295, 170, 220],
197
+ ['data4', 10, 340, 30, 290, 35, 20],
198
+ ['data5', 90, 150, 160, 165, 180, 5]
199
+ ],
200
+ type: 'spline'
201
+ },
202
+ grid: {
203
+ y: {
204
+ show: true
205
+ }
206
+ },
207
+ point: {
208
+ r: 4
209
+ }
210
+ });
211
+ var chart4 = c3.generate({
212
+ axis: {
213
+ x: {
214
+ tick: {
215
+ outer: false
216
+ }
217
+ },
218
+ y: {
219
+ tick: {
220
+ outer: false
221
+ }
222
+ }
223
+ },
224
+ bindto: '#chart4',
225
+ color: {
226
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
227
+ },
228
+ data: {
229
+ columns: [
230
+ ['data1', 300, 350, 300, 0, 0, 0],
231
+ ['data2', 130, 100, 140, 200, 150, 50]
232
+ ],
233
+ types: {
234
+ data1: 'area-spline',
235
+ data2: 'area-spline'
236
+ }
237
+ },
238
+ grid: {
239
+ y: {
240
+ show: true
241
+ }
242
+ },
243
+ point: {
244
+ r: 4
245
+ }
246
+ });
247
+ var chart5 = c3.generate({
248
+ axis: {
249
+ x: {
250
+ tick: {
251
+ outer: false
252
+ }
253
+ },
254
+ y: {
255
+ tick: {
256
+ outer: false
257
+ }
258
+ }
259
+ },
260
+ bindto: '#chart5',
261
+ color: {
262
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
263
+ },
264
+ data: {
265
+ columns: [
266
+ ['data1', 300, 350, 300, 0, 0, 0],
267
+ ['data2', 130, 100, 140, 200, 150, 50]
268
+ ],
269
+ types: {
270
+ data1: 'area-spline',
271
+ data2: 'area-spline'
272
+ },
273
+ groups: [['data1', 'data2']]
274
+ },
275
+ grid: {
276
+ y: {
277
+ show: true
278
+ }
279
+ },
280
+ point: {
281
+ r: 4
282
+ }
283
+ });
284
+ var chart6 = c3.generate({
285
+ axis: {
286
+ x: {
287
+ categories: ['Red', 'Orange', 'Green', 'Blue'],
288
+ tick: {
289
+ outer: false
290
+ },
291
+ type: 'category'
292
+ },
293
+ y: {
294
+ tick: {
295
+ outer: false
296
+ }
297
+ }
298
+ },
299
+ bar: {
300
+ width: {
301
+ ratio: 0.5 // this makes bar width 50% of length between ticks
302
+ }
303
+ },
304
+ bindto: '#chart6',
305
+ color: {
306
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
307
+ },
308
+ data: {
309
+ columns: [
310
+ ['data1', 5, 200, 200, 400],
311
+ ['data2', 130, 100, 20, 200]
312
+ ],
313
+ type: 'bar'
314
+ },
315
+ grid: {
316
+ y: {
317
+ show: true
318
+ }
319
+ }
320
+ });
321
+ var chart7 = c3.generate({
322
+ axis: {
323
+ rotated: true,
324
+ x: {
325
+ categories: ['Red', 'Orange', 'Green', 'Blue'],
326
+ tick: {
327
+ outer: false
328
+ },
329
+ type: 'category'
330
+ },
331
+ y: {
332
+ tick: {
333
+ outer: false
334
+ }
335
+ }
336
+ },
337
+ bindto: '#chart7',
338
+ color: {
339
+ pattern: ['#0088ce', '#00659c', '#3f9c35', '#ec7a08', '#cc0000']
340
+ },
341
+ data: {
342
+ columns: [
343
+ ['data1', 5, 200, 200, 400],
344
+ ['data2', 130, 100, 20, 200]
345
+ ],
346
+ groups: [
347
+ ['data1', 'data2']
348
+ ],
349
+ type: 'bar'
350
+ },
351
+ grid: {
352
+ y: {
353
+ show: true
354
+ }
355
+ }
356
+ });
357
+ var chart8 = c3.generate({
358
+ bindto: '#chart8',
359
+ data: {
360
+ colors: {
361
+ Cloud:
362
+ '#00659c', Virtual: '#0088ce',
363
+ Baremetal: '#969696'
364
+ },
365
+ columns: [
366
+ ['Cloud', 4,828],
367
+ ['Virtual', 13,258],
368
+ ['Baremetal', 11,1124]
369
+ ],
370
+ type : 'donut',
371
+ onclick: function (d, i) { console.log("onclick", d, i); },
372
+ onmouseover: function (d, i) { console.log("onmouseover", d, i); },
373
+ onmouseout: function (d, i) { console.log("onmouseout", d, i); }
374
+ },
375
+ donut: {
376
+ title: "29,210 Host Totals"
377
+ }
378
+ });
379
+ </script>
380
+ </div><!-- /container -->
381
+ </body>
382
+ </html>