This repository has been archived by the owner on May 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
CartesianChartPropsMixin
Matthew Herbst edited this page May 5, 2015
·
20 revisions
This mixin provides common properties for all Cartesian-style charts.
(All properties can be overridden by passing in the property to the top level call of any chart that implements the mixin.)
-
axesColor - the fill color of the axes
- Type:
React.PropTypes.string
- Default:
'#000'
- Type:
-
colors - a function that generates a color to be used for a fill. This is often implemented as a d3 ordinal color scale
- Type:
React.PropTypes.func
- Default:
d3.scale.category20c()
- Type:
-
colorAccessor - this return value of function is passed into colors
- Type:
React.PropTypes.func
- Default:
(d, idx) => idx
whered
is the datum being operated on, andidx
is the index in the array of datums
- Type:
-
data - this is the datum array, in the required format, that is passed into your chart
- Type:
React.propTypes.oneOfType([React.PropTypes.array, React.PropTypes.object])
- Default:
[]
- Type:
- Issues: react-d3 issues on Github
- Support: react-d3 Google Groups email list