-
Notifications
You must be signed in to change notification settings - Fork 95
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 #1012 from swaterkamp/GUImisc
Change Line Charts
- Loading branch information
Showing
14 changed files
with
42 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* | ||
* Authors: | ||
* Björn Ricks <[email protected]> | ||
* Steffen Waterkamp <[email protected]> | ||
* | ||
* Copyright: | ||
* Copyright (C) 2018 Greenbone Networks GmbH | ||
|
@@ -26,24 +27,34 @@ import {css} from 'glamor'; | |
|
||
import {Axis as VxAxis} from '@vx/axis'; | ||
|
||
import PropTypes from '../../utils/proptypes'; | ||
import PropTypes from 'web/utils/proptypes'; | ||
import Theme from 'web/utils/theme'; | ||
|
||
const FONT_SIZE = 10; | ||
|
||
const DEFAULT_TICK_LENGTH = 8; | ||
|
||
const labelCss = css({ | ||
fill: Theme.darkGray, | ||
}); | ||
|
||
const lineCss = css({ | ||
shapeRendering: 'crispEdges', | ||
stroke: Theme.mediumGray, | ||
strokeWidth: 0.99, | ||
}); | ||
|
||
const tickCss = css({ | ||
'& line': { | ||
stroke: Theme.mediumGray, | ||
shapeRendering: 'crispEdges', | ||
strokeWidth: 0.99, | ||
}, | ||
}); | ||
|
||
const DEFAULT_TICK_PROPS = { | ||
fill: 'black', | ||
fontFamily: 'Arial', | ||
fill: Theme.mediumGray, | ||
fontFamily: Theme.Font.default, | ||
fontSize: FONT_SIZE, | ||
}; | ||
|
||
|
@@ -93,8 +104,9 @@ const Axis = ({ | |
<VxAxis | ||
{...props} | ||
axisLineClassName={`${lineCss}`} | ||
tickClassName={`${lineCss}`} | ||
tickClassName={`${tickCss}`} | ||
labelOffset={labelOffset} | ||
labelClassName={`${labelCss}`} | ||
orientation={orientation} | ||
rangePadding={rangePadding} | ||
tickLabelProps={tickLabelProps} | ||
|
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
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
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