Skip to content

Commit

Permalink
add stacked chart icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Sep 25, 2019
1 parent 3565991 commit f7a251e
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ const iconTypes = [
'vector',
'videoPlayer',
'visArea',
'visAreaStacked',
'visBarHorizontal',
'visBarHorizontalStacked',
'visBarVertical',
'visBarVerticalStacked',
'visControls',
'visGauge',
'visGoal',
Expand Down
14 changes: 14 additions & 0 deletions src/components/icon/assets/vis_area_stacked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

const EuiIconVisAreaStacked = props => (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<path d="M.5 1a.5.5 0 0 1 .5.5V15h13.5a.5.5 0 1 1 0 1H.5a.5.5 0 0 1-.5-.5v-14A.5.5 0 0 1 .5 1zm4.342 2.194L8.295 7.65l1.837-1.64a.5.5 0 0 1 .703.037l3.035 3.336a.5.5 0 0 1 .13.337v3.78a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V6.02a.5.5 0 0 1 .104-.305l1.947-2.52a.5.5 0 0 1 .791-.001zm-.394 1.123L3 6.191v4.101l1.146-1.146a.5.5 0 0 1 .493-.126l.085.033L8.5 10.94l1.776-.888a.5.5 0 0 1 .36-.034l.088.034L13 11.19V9.913l-2.571-2.826L8.56 8.753a.5.5 0 0 1-.728-.067L4.448 4.317z" />
</svg>
);

export const icon = EuiIconVisAreaStacked;
3 changes: 3 additions & 0 deletions src/components/icon/assets/vis_area_stacked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/components/icon/assets/vis_bar_horizontal_stacked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

const EuiIconVisBarHorizontalStacked = props => (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<path d="M.5 0a.5.5 0 0 1 .5.5v14a.5.5 0 1 1-1 0V.5A.5.5 0 0 1 .5 0zm13 1a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H9v3h2.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-9a.5.5 0 1 1 0-1H9v-3H2.5a.5.5 0 0 1 0-1H6V6H2.5a.5.5 0 0 1 0-1H10V2H2.5a.5.5 0 0 1 0-1h11z" />
</svg>
);

export const icon = EuiIconVisBarHorizontalStacked;
3 changes: 3 additions & 0 deletions src/components/icon/assets/vis_bar_horizontal_stacked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/components/icon/assets/vis_bar_vertical_stacked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

const EuiIconVisBarVerticalStacked = props => (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<path d="M14.5 15a.5.5 0 1 1 0 1H.5a.5.5 0 1 1 0-1h14zm-9-13a.5.5 0 0 1 .5.5L5.999 7H9V4.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v9a.5.5 0 1 1-1 0V7h-3v6.5a.5.5 0 0 1-.41.492L9.5 14a.5.5 0 0 1-.5-.5V10H6v3.5a.5.5 0 0 1-.992.09L5 13.5V6H2v7.5a.5.5 0 1 1-1 0v-11a.5.5 0 0 1 .5-.5h4z" />
</svg>
);

export const icon = EuiIconVisBarVerticalStacked;
3 changes: 3 additions & 0 deletions src/components/icon/assets/vis_bar_vertical_stacked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,11 @@ const typeToPathMap = {
vector: 'vector',
videoPlayer: 'videoPlayer',
visArea: 'vis_area',
visAreaStacked: 'vis_area_stacked',
visBarHorizontal: 'vis_bar_horizontal',
visBarHorizontalStacked: 'vis_bar_horizontal_stacked',
visBarVertical: 'vis_bar_vertical',
visBarVerticalStacked: 'vis_bar_vertical_stacked',
visControls: 'vis_controls',
visGauge: 'vis_gauge',
visGoal: 'vis_goal',
Expand Down

0 comments on commit f7a251e

Please sign in to comment.