-
Notifications
You must be signed in to change notification settings - Fork 413
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 #165 from JesperLekland/feature/min-max-clamp
Feature/min max clamp
- Loading branch information
Showing
25 changed files
with
370 additions
and
65 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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
5.x.0 | ||
|
||
* Added `cornerRadius` to progressCircle | ||
* Adhere to `Svg` api with `height` and `width` instead of `flex: 1` | ||
* StackedBarChart now supports `svg` prop for each data entry! Allowing onPress among other things. | ||
* StackedAreaChart now supports `svg` prop for each area! Allowing onPress among other things | ||
* The two above changes does remove the other "svg" props from the charts, for example `renderGradient` | ||
that is now replaces with the same gradient API as the other charts (i.e children). | ||
* PieChart supports `(start|end)Angle` | ||
5.2.0 | ||
|
||
* Add `x(Min|Max)` and `y(Min|Max)` | ||
* Add `clamp(X|Y)` to use in conjunction with above props (default `false`) | ||
* Add xScale to StackedAreaChart | ||
* Deprecate `AreaChart` prop `start` in favour of `baseline` due to better naming. | ||
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react' | ||
import { AreaChart, Grid } from 'react-native-svg-charts' | ||
import * as shape from 'd3-shape' | ||
import * as array from 'd3-array' | ||
|
||
class DifferentBaseExample extends React.PureComponent { | ||
|
||
render() { | ||
|
||
const data = [ 50, 10, 40, 95, -4, -24, 85, 91, 35, 53, -53, 24, 50, -20, -80 ] | ||
const min = array.extent(data)[ 0 ] | ||
|
||
return ( | ||
<AreaChart | ||
style={{ height: 200 }} | ||
data={ data } | ||
contentInset={{ top: 30, bottom: 30 }} | ||
curve={ shape.curveNatural } | ||
svg={{ fill: 'rgba(134, 65, 244, 0.8)' }} | ||
start={ min } | ||
> | ||
<Grid/> | ||
</AreaChart> | ||
) | ||
} | ||
} | ||
|
||
export default DifferentBaseExample |
File renamed without changes.
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
Oops, something went wrong.