Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bar chart to IHME-UI #171

Merged
merged 162 commits into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
1ee6fc2
Initial ui/bar set-up
Jul 10, 2017
73255bc
Implemented basic props for bar component, added event handler for bar
Jul 10, 2017
ae9fb54
Added bars/multi-bars scripts
Jul 11, 2017
71a3b94
Testing Bar Component
Jul 11, 2017
15798bd
Implemented proptypes for both bar and bars
Jul 11, 2017
73ffdf3
Added Scales for bars, render corrects outputs within current demo
Jul 12, 2017
7fba31c
Added d3 scaleband props for bars
Jul 12, 2017
6ee17c9
Adding checks for potential optional scaleband props
Jul 12, 2017
1d74941
Added hard-coded horizontal bars orientation
Jul 13, 2017
e587517
Added bar util script
Jul 13, 2017
79f8fc5
Cleaned up logic behind bars orientation
Jul 13, 2017
a5ddb56
Added two demos and cleaned up code
Jul 13, 2017
1df7e97
Working version of grouped bar chart
Jul 17, 2017
dc0d4e5
Added new props to support grouped bar charts within bars
Jul 18, 2017
78cc445
Fixed issue with inner scale
Jul 18, 2017
a6eee50
Cleaned up props for multi-bars and demo variables
Jul 18, 2017
1009790
Cleaned up bars to support different prop types and orientation together
Jul 18, 2017
9b39612
Cleaned up demo code and props for bars. added description of props
Jul 18, 2017
f84ed88
Cleaned up logic behind the attribute calculations for bar props
Jul 19, 2017
b2b2949
Creating barchart composite component with title and legend
Jul 20, 2017
1ece03d
Adding demo for barchart component
Jul 20, 2017
b1f5e13
Adding Stack Bar Chart Components into current codebase
Jul 24, 2017
fef817e
Worked stacked orientation, needs to merge into rest of code
Jul 25, 2017
b624553
cleaning up integration of stacked bar chart
Jul 27, 2017
07d3799
Working demos for 3 types of bar chart with 2 orientations
Jul 28, 2017
7018aa6
Cleaned up demo code
Jul 28, 2017
0aff68a
Cleaned up hard coded code for testing
Jul 31, 2017
1087e27
Finished Clean up for code review
Aug 1, 2017
033b847
Updated Newest Unit Test Code
Aug 9, 2017
a563595
Cleaned up and added function that returns an object of the props for…
Aug 9, 2017
1fa2933
Adding demo for barchart component
Jul 20, 2017
313bbaa
Removed barchart composition to new beanch
Aug 9, 2017
a14bd27
remove barchart composition to new branch
Aug 9, 2017
f3829b2
Removed faulty test code
Aug 9, 2017
574b544
Corrected failed lint tests
Aug 10, 2017
d0937c3
eslint rule of nested ternary was turned off, no errors with jslint
Aug 10, 2017
65ff267
Updated src & demo code for barchart
Aug 22, 2017
db267b5
Updated src & demo code for stacked bar chart
Aug 22, 2017
79fcb86
Basic rendering test code add for stacked & bar chart compositions
Aug 22, 2017
b7d442b
Refactored logic behind returning rendering prop values
Aug 22, 2017
0badb78
Fixed band props not passing to children components
Aug 24, 2017
d373886
Fixed remaining linting errors and commented out util functions
bdinh Sep 26, 2017
0b2ecb9
Refactored nested ternary into separate function
bdinh Sep 26, 2017
e9d63a1
Changes made in accordance with several pr comments
bdinh Sep 29, 2017
b94e042
change .eslintrc.js to get rid of 'array-callback-return' to make lin…
kbeame May 29, 2018
7942c32
make this getRenderProps into a class method instead of a utility fu…
kbeame May 29, 2018
4e4f7cf
Be more specefic about what types of strings are allowed for orientation
kbeame May 29, 2018
fc50be7
delete tests that test React themselves and are commented out
kbeame May 29, 2018
2cada2c
change the name of labelObject to labelAccessor and bandObject to ban…
kbeame May 29, 2018
3ec730b
change the name of accessor props named [*]Object to [*]Accessor
kbeame May 30, 2018
5bf1c70
fix lint error with blocklines in test
kbeame May 30, 2018
4f693f7
return and store an updated d3 scale with the padding
kbeame May 30, 2018
dfc3169
make this getRenderingProps into a class method instead of a utility …
kbeame Aug 2, 2018
3ae6425
change the name of obj to collection
kbeame Aug 2, 2018
7ca312a
fix small issues with demos
kbeame Aug 2, 2018
0824408
fix test and lint errors
kbeame Aug 3, 2018
f2dec19
update to React 16 and fix lint errors
kbeame Aug 3, 2018
a8d4dc6
add README.mds for bar, bars, multibar, stacked and barchart
kbeame Aug 7, 2018
f6ac7d6
re-create stacked component to be able to handle both grouped, bar, a…
kbeame Sep 13, 2018
177e4b1
Delete unnecessary barchart component
kbeame Sep 13, 2018
e7bc6d8
Fix up small comments and lint errors
kbeame Sep 13, 2018
d1422a0
add displayLegend to give option for the legend to display
kbeame Sep 13, 2018
9426374
updates to READMEs and small style and typo changes
kbeame Sep 14, 2018
cad8609
updates to formatting on stacked and bar demo
kbeame Sep 17, 2018
d3ab15d
update ternary formatting in bars.jsx
kbeame Sep 17, 2018
25b6c61
update ternary formatting in bars.jsx
kbeame Sep 17, 2018
5f346d1
update spacing in bars demo
kbeame Sep 17, 2018
2376d6a
convert lodash imports to lodash-es imports to support tree-shaking
kbeame Sep 17, 2018
8d90769
Update to shorthands version of arrow-function
kbeame Sep 21, 2018
6d0a043
get rid of unnecessary changes on map component
kbeame Sep 27, 2018
9286aec
re-format and spacing changes
kbeame Sep 27, 2018
54cd1cc
update ternary formatting in bars.jsx
kbeame Sep 27, 2018
e156385
change lodash to use lodash-es instead
kbeame Sep 27, 2018
09aee0f
update to PureComponent and text changes
kbeame Sep 27, 2018
da1b688
update descriptors on bar tests and variable name referencing to incr…
kbeame Sep 27, 2018
05ead4a
update descriptors on bars tests and delete unnecessary tests
kbeame Sep 27, 2018
c65b172
update descriptors on multi bar tests and delete unnecessary tests
kbeame Sep 27, 2018
807f553
updated stacked in demo and stacked.jsx
kbeame Sep 27, 2018
0cdb54c
updated stacked.test.jsx
kbeame Sep 27, 2018
7df762a
Stacked demo: Add text "with Legend" to demos with legends.
Feb 11, 2019
d901af8
Clean up stylesheets.
Feb 11, 2019
f1bb919
Use 4-space indentation in stylesheet, as elsewhere in the project.
Feb 11, 2019
2b4e132
Code style: remove unnecessary parens.
Feb 11, 2019
dca5852
Whitespace: trim trailing and remove extra line breaks.
Feb 11, 2019
da89794
Multi-bars component: refactor anon fn as method renderBars.
Feb 11, 2019
c4f9c66
Bars component: refactor anon fn as method renderBar.
Feb 11, 2019
586d81d
Refactor bar tests for class names.
Feb 11, 2019
0369c2c
Fix indentation error.
Feb 11, 2019
9042e15
Bar demo: remove unused import and extra line break.
Feb 11, 2019
4d80104
Bar docs: Clarify usage of props `data` and `datum`.
Feb 11, 2019
f73ce9e
Remove textual redundancy.
Feb 11, 2019
24b73a0
Composition `Stacked`: Add prop `padding` to allow extra space for la…
Feb 12, 2019
865f550
Stacked demo: Add padding to avoid label collisions.
Feb 12, 2019
9f430e5
Stacked demo: sort imports by package and alphabetically.
Feb 12, 2019
96055eb
Don't use Webpack production mode for bundling demos.
Feb 12, 2019
d607697
Simplify re-exports in utils/index.js.
Feb 20, 2019
49e2c64
Trim excess whitespace
Feb 21, 2019
71a965d
Add util function to compute max data value
Feb 21, 2019
78e7a67
Reorganize bar composite components
Feb 21, 2019
d5e4434
Update component exports
Feb 21, 2019
064ab49
Revise StackedBarChart to use Bars, GroupedBars, StackedBars
Feb 21, 2019
9c0fd70
Updated StackBarChart demo to new, simpler API
Feb 21, 2019
291cd91
Remove unused 2nd param (`stack`) to `computeStackMax`
Feb 21, 2019
fe6166d
Remove unused properties from bar components.
Feb 21, 2019
1542844
Memoize (potentially) expensive util fns in bar components.
Feb 21, 2019
073fa5f
In bar components, copy D3 scaling functions passed as props
Feb 21, 2019
c367deb
Rename composition StackedBarChart -> BarChart
Feb 21, 2019
fb09085
Remove unnecessary aliasing in module index files
Feb 21, 2019
1a0016b
Extract getDomainScale & getRangeScale as util fns
Feb 21, 2019
bc2eef9
Reorder fn definitions in utils/bar.js
Feb 21, 2019
261b492
Use namespace import of `util` to reduce number of imported symbols
Feb 21, 2019
ba5cda0
Refine the way color is computed in Bars, GroupedBars, StackedBars
Feb 22, 2019
351718e
Extract props common to Bars, GroupedBars, StackedBars
Feb 22, 2019
c00ea3f
Revise docs for bar components
Feb 22, 2019
a53d033
Replace props `colorScale` and `dataAccessors.fill` with augmented `f…
Feb 22, 2019
6fd38b5
Rename padding props to be simpler and use more idiomatic English
Feb 22, 2019
1315a07
Override no-nested-ternary lint rule.
Feb 22, 2019
5302ae3
Revise BarChart demo using fn form of `fill` prop.
Feb 22, 2019
7183a37
In BarChart demo, revise data generator call to be more explicit.
Feb 22, 2019
4ed5e53
Use default align 0.5, so that adjustDomainScale can assume align is …
Feb 22, 2019
27cf3ef
In BarChart demo, derive legend items from `years` array
Feb 22, 2019
ff01f16
Revise BarChart demo to show only eight years
Feb 22, 2019
d297cb4
Revise bar components README
Feb 22, 2019
99e6293
Make Bar docs more consistent
Feb 22, 2019
c5ffc31
Replace BarChart prop labelAccessors with title and axisLabels
Feb 22, 2019
701c4f3
Fix misspelling of "subcategory"
Feb 22, 2019
e70e626
Revise props and docs for BarChart
Feb 22, 2019
351e4e6
Revise bar component docs
Feb 22, 2019
3ee6d08
When BarChart must display legend, check for needed props
Feb 22, 2019
a339bbd
Refactor computeStackOffsets to store just starting offset
Feb 23, 2019
6bb71c3
When getting domain and range scales, remember to check for undefined
Feb 23, 2019
9af8469
Revise bar components demo
Feb 23, 2019
bdd9205
Simplify import statement in BarChart demo
Feb 23, 2019
a55400e
Update Bars tests
Feb 23, 2019
c6c30d2
In GroupedBars, StackedBars guard against prop val undefined
Feb 23, 2019
ac831f4
Adapt MultiBars tests to GroupedBars, StackedBars tests
Feb 23, 2019
5347cf2
In bar components, check for undefined selection with new util fn
Feb 25, 2019
7f4beb1
Reorder props to Bar for consistency
Feb 25, 2019
7015857
Rename params to util.computeStackOffsets for greater clarity
Feb 25, 2019
aaf459c
Revise tests for bar components
Feb 25, 2019
e966386
Fix incorrect import in bar chart demo.
Mar 1, 2019
423a5d9
Restore preformatted code examples in bar demos
Mar 1, 2019
6d2570b
Fix markdown formatting error in BarChart README
Mar 6, 2019
2c9dac0
Add BarChart as top-level export
Mar 6, 2019
6261584
In BarChart, guard against prop axisLabels undefined
Mar 6, 2019
3a15c77
Refactor build scripts to first remove the output dir.
Mar 6, 2019
8add0e3
In BarChart, auto-filter ticks on range axis.
Mar 7, 2019
04acf08
Remove superfluous div wrapping Legend in BarChart
Mar 8, 2019
d78768b
Remove unused style directives for BarChart demo.
Mar 12, 2019
bbdb187
Remove unnecessary styles in BarChart demo.
Mar 12, 2019
cf74417
Supply missing `selection` prop in BarChart demo.
Mar 12, 2019
e905cc7
Use top-level README, use relative links for navigation.
Mar 12, 2019
f33b841
Update top-level README to include new components.
Mar 12, 2019
628458d
Tweak code style in top-level README.
Mar 12, 2019
eb37551
In BarChart demo, simplify legend item access.
Mar 12, 2019
212fce8
Revise BarChart styling and sizing.
Mar 12, 2019
d930375
Revise padding values in BarChart demo.
Mar 12, 2019
cea41f7
Add props to BarChart for finer-grained control of legend styling.
Mar 12, 2019
a53e4d9
Lint
Mar 12, 2019
4383d68
Update "contributors" field in package.json.
Mar 14, 2019
c897e83
Revise "preversion" and "postversion" npm scripts.
Mar 14, 2019
b19c424
In webpack build config, remove "react-dom" external.
Mar 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
"comma-dangle": 0,
"no-underscore-dangle": [2, { "allowAfterThis": true }],
"arrow-body-style": [1, "as-needed"],
"max-len": [2, 100, 2, { "ignoreUrls": true, "ignoreComments": true }]
"max-len": [2, 100, 2, { "ignoreUrls": true, "ignoreComments": true }],
},
"env": {
"browser": true,
Expand Down
49 changes: 28 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ npm install -S ihme-ui
In it's most simple form, this library can be included in a `<script />` tag and accessed off of `window` as `ihmeUI`.
If you've installed the library from the [npm registry](https://www.npmjs.com/package/ihme-ui), you can pull the library out of your `node_modules` folder.
If not, grab it off of the unoffical NPM CDN, [unpkg](https://unpkg.com/#/).
```html

```html
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -54,36 +54,43 @@ In most cases, however, you'll be importing ihme-ui into your project, and bundl
In support of this, `ihme-ui` exposes both a CommonJS (i.e., `var ihmeUI = require('ihme-ui')`) and an ES module (i.e., `import ihmeUI from 'ihme-ui'`) target.
```javascript
// index.js
import { AxisChart, linspace } from 'ihme-ui';
...

import { AxisChart, linspace } from 'ihme-ui';
//...
```

---

## API Reference
* Components
* [\<Axis /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/axis/README.md)
* [\<AxisChart /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/axis-chart/README.md)
* [\<Button /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/button/README.md)
* [\<Choropleth /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/choropleth/README.md)
* [Compositions](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/compositions/README.md)
* [\<Map \/>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/compositions/map/README.md)
* [\<ChoroplethLegend /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/compositions/choropleth-legend/README.md)
* [\<ExpansionContainer /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/expansion-container/README.md)
* [\<Group /\> and \<Option /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/group/README.md)
* [\<HtmlLabel /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/html-label/README.md)
* [\<Legend /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/legend/README.md)
* [\<LoadingIndicator /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/loading-indicator/README.md)
* [\<Axis /\>](src/ui/axis/README.md)
* [\<AxisChart /\>](src/ui/axis-chart/README.md)
* [Bar](src/ui/bar/README.md)
* \<Bar /\>
* \<Bars /\>
* \<GroupedBars /\>
* \<StackedBars /\>
* [\<Button /\>](src/ui/button/README.md)
* [\<Choropleth /\>](src/ui/choropleth/README.md)
* [Compositions](src/ui/compositions/README.md)
* [\<BarChart /\>](src/ui/compositions/bar-chart/README.md)
* [\<ChoroplethLegend /\>](src/ui/compositions/choropleth-legend/README.md)
* [\<Map /\>](src/ui/compositions/map/README.md)
* [\<ExpansionContainer /\>](src/ui/expansion-container/README.md)
* [\<Group /\> and \<Option /\>](src/ui/group/README.md)
* [\<HtmlLabel /\>](src/ui/html-label/README.md)
* [\<Legend /\>](src/ui/legend/README.md)
* [\<LoadingIndicator /\>](src/ui/loading-indicator/README.md)
* [\<ResponsiveContainer /\>](src/ui/responsive-container/README.md)
* \<Select /\> - docs coming soon!
* [\<ResponsiveContainer /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/responsive-container/README.md)
* [Shape](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/shape/README.md)
* [Shape](src/ui/shape/README.md)
* \<Area /\>
* \<Line /\>
* \<MultiLine /\>
* \<MultiScatter /\>
* \<Scatter /\>
* \<Shape /\>
* [\<Slider /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/slider/README.md)
* [\<SvgText /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/svg-text/README.md)
* [\<Tooltip /\>](https://github.com/ihmeuw/ihme-ui/blob/master/src/ui/tooltip/README.md)
* [Utilities](https://github.com/ihmeuw/ihme-ui/tree/master/src/utils) - docs coming soon!
* [\<Slider /\>](src/ui/slider/README.md)
* [\<SvgText /\>](src/ui/svg-text/README.md)
* [\<Tooltip /\>](src/ui/tooltip/README.md)
* Utilities - docs coming soon!
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
],
"author": "Institue for Health Metrics and Evaluation",
"contributors": [
"Gabe Medrash <[email protected]>",
"Brett Vitaz <[email protected]>",
"Aaron Keel <[email protected]>",
"Gabe Medrash <[email protected]> (https://github.com/GabeMedrash)",
"Brett Vitaz <[email protected]> (https://github.com/brettvitaz)",
"Aaron Keel <[email protected]> (https://github.com/aaronKeel)",
"David Schneider <[email protected]> (https://github.com/davschne)",
"Katherine Beame <[email protected]>",
"Jim Vermillion <[email protected]>"
"Katherine Beame <[email protected]> (https://github.com/kbeame)",
"Jim Vermillion <[email protected]> (https://github.com/jimvermillion)",
"Bao Dinh <[email protected]> (https://github.com/bdinh)"
],
"repository": "https://github.com/ihmeuw/ihme-ui.git",
"bugs": "https://github.com/ihmeuw/ihme-ui/issues",
"scripts": {
"build:all": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd",
"build:commonjs": "NODE_ENV=production BABEL_ENV=commonjs $(npm bin)/babel --ignore test/,demo src --out-dir lib && scripts/concat-stylesheets.sh lib",
"build:es": "NODE_ENV=production BABEL_ENV=es $(npm bin)/babel --ignore test/,demo src --out-dir es && scripts/concat-stylesheets.sh es",
"build:umd": "BABEL_ENV=webpack webpack -p --config webpack.build.config.js src/index.js dist/ihme-ui.js",
"build:all": "npm run build:commonjs && npm run build:es && npm run build:umd",
"build:commonjs": "rm -rf lib && NODE_ENV=production BABEL_ENV=commonjs $(npm bin)/babel --ignore test/,demo src --out-dir lib && scripts/concat-stylesheets.sh lib",
"build:es": "rm -rf es && NODE_ENV=production BABEL_ENV=es $(npm bin)/babel --ignore test/,demo src --out-dir es && scripts/concat-stylesheets.sh es",
"build:umd": "rm -rf dist && BABEL_ENV=webpack webpack -p --config webpack.build.config.js src/index.js dist/ihme-ui.js",
"clean": "rm -rf dist es lib",
"css:minify": "$(npm bin)/cssnano dist/ihme-ui.css dist/ihme-ui.min.css",
"coverage": "BABEL_ENV=test $(npm bin)/babel-node $(npm bin)/babel-istanbul cover $(npm bin)/_mocha --require ./scripts/setup-jsdom.js -- `scripts/get-test-directories.sh`",
Expand All @@ -37,8 +38,8 @@
"docs:ui": "find -X ./src \\( -depth 3 -or -depth 4 \\) -type d -name 'src' | xargs $(npm bin)/react-docgen | node ./scripts/build-doc.js",
"lint": "$(npm bin)/eslint src --ext .js,.jsx",
"lint:fix": "$(npm bin)/eslint src --fix --ext .js,.jsx --quiet",
"preversion": "npm run lint && npm run test && npm run build:all",
"postversion": "git push && git push --tags && npm publish",
"preversion": "npm install && npm run lint && npm run test && npm run build:all",
"postversion": "git push --tags https://github.com/ihmeuw/ihme-ui.git master && npm publish",
"test": "BABEL_ENV=test $(npm bin)/babel-node $(npm bin)/_mocha --require ./scripts/setup-jsdom.js `./scripts/get-test-directories.sh`",
"test:travis": "npm run lint && npm run coverage:travis && npm run coverage:token",
"update:dep": "./scripts/update-package.sh"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundle-demos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function run_webpack
fi

echo "Packing: ${demo_dir}"
$(npm bin)/webpack -p --env ${demo_dir} --config "./webpack.demo.config.js" --display-error-details
$(npm bin)/webpack --env ${demo_dir} --config "./webpack.demo.config.js" --display-error-details
}

for dir in $(find . -d -regex ".*/${1+$1/}demo"*); do
Expand Down
4 changes: 1 addition & 3 deletions src/ui/axis-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

Wraps and provides its child charting components with height, width, scales, and padding


Property | Required | Type(s) | Defaults | Description
:--- |:--- |:--- |:--- |:---
:--- |:--- |:--- |:--- |:---
`className` | | [CommonPropTypes.className](https://github.com/ihmeuw/ihme-ui/blob/master/src/utils/props.js#L11) | | className applied to outermost svg element
`clipPath` | | bool | | apply clipping path to charting area
`height` | true | number | | pixel height of line chart
Expand All @@ -18,4 +17,3 @@ Property | Required | Type(s) | Defaults | Description
`xScaleType` | | one of: SCALE_TYPES | | type of x scale<br />[name of d3 scale scale function](https://github.com/d3/d3-scale)
`yDomain` | | array | | [min, max] yScale (i.e., the range of the data)
`yScaleType` | | one of: SCALE_TYPES | | type of y scale<br />[name of d3 scale scale function](https://github.com/d3/d3-scale)

6 changes: 2 additions & 4 deletions src/ui/axis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
=====================
`import { Axis } from 'ihme-ui'`


Property | Required | Type(s) | Defaults | Description
:--- |:--- |:--- |:--- |:---
:--- |:--- |:--- |:--- |:---
`className` | | [CommonPropTypes.className](https://github.com/ihmeuw/ihme-ui/blob/master/src/utils/props.js#L11) | | className applied to outermost group element
`height` | | number | 30 | height of charting area, minus padding<br />required if translate is not provided
`label` | | string | | the axis label
Expand All @@ -25,7 +24,7 @@ Property | Required | Type(s) | Defaults | Description
`translate` | | object | | push axis in x or y direction<br />keys: 'x' (required), 'y' (required)<br />required if width and height are not provided
`width` | | number | 900 | width of charting area, minus padding<br />required if translate is not specified

---
---

#### \<XAxis />

Expand Down Expand Up @@ -62,4 +61,3 @@ Property | Required | Type(s) | Defaults | Description
`scales` | | func | | required if and only if `props.scale` is not provided
`tickFontFamily` | | string | 'Helvetica' | font-family of axis ticks; used when taking measurement of widest tick if autoFilterTickValues === true
`tickFontSize` | | number | 12 | font size of axis ticks, in pixels; used when taking measurement of widest tick or to determine tick height if autoFilterTickValues === true

1 change: 0 additions & 1 deletion src/ui/axis/src/axis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ export const WIDTH_PROP_TYPES = {
width: PropTypes.number.isRequired,
};


Axis.propTypes = {

/**
Expand Down
Loading