Skip to content

Commit

Permalink
gh-pages <- v1.2.2 release (#113)
Browse files Browse the repository at this point in the history
* Remove legacy return from RangeBarChart (#93)

* Remove legacy return from RangeBarChart

* Lint fix

* Minor bug fixes (#94)

* Fix ScatterPlot pointStyle propType

* Fix proptypes for XAxis and YAxis labels

* Add test for label formatting

* Rebuild docs

* Fix docs for treemap and sankey diagram and rebuild docs

* v1.0.1 release (#95)

* Fix merge conflict code (#97)

* Add d3 line generator and curve prop to LineChart (#99)

* Fix growl dependency, recreate package-lock.json (#100)

* Add offset prop to x and y labels (#102)

* Add offset prop to x and y labels

* Update axis test

* Update documentation

* Fix issue with TreeMap and react-docgen issues. Regenerate docs (#103)

* v1.1.0 release (#104)

* Add show line prop and default style for X and Y Axis (#106)

* Add show line prop and default style for xaxis

* Regenerated docs

* 1.2.0 release (#107)

* Add curve prop to AreaChart for changing curve type (#109)

* Add curve prop to AreaChart for changing curve type

* Make curve to AreaChart optional

* feature(version): bump version for curve

* Fix broken docs and update version (#111)
  • Loading branch information
Kris Salvador authored Aug 31, 2018
1 parent 2f5f56b commit 808264d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.2.2 (2018-08-31)

- [#111](https://github.com/spotify/reactochart/pull/111) Rebuild docs for gh-pages branch

## 1.2.1 (2018-08-30)

- [#109](https://github.com/spotify/reactochart/pull/109) Adds curve prop to AreaChart for custom curves - thanks @dgdblank!

## 1.2.0 (2018-08-29)

- [#106](https://github.com/spotify/reactochart/pull/106) Adds showLine and lineStyle prop to X and Y Axis. Also adds default styling to provide X and Y Axis line with stroke color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188688,7 +188688,8 @@ var AreaChart = function (_React$Component) {
pathStyleNegative = _props.pathStyleNegative,
shouldShowGaps = _props.shouldShowGaps,
pathClassName = _props.pathClassName,
isDefined = _props.isDefined;
isDefined = _props.isDefined,
curve = _props.curve;

var accessors = {
x: (0, _Data.makeAccessor2)(x),
Expand All @@ -188715,6 +188716,10 @@ var AreaChart = function (_React$Component) {
return yScale(accessors.yEnd(d, i));
});

if (curve) {
areaGenerator.curve(curve);
}

var areaPathStr = areaGenerator(data);

if (isDifference) {
Expand Down Expand Up @@ -188858,7 +188863,11 @@ AreaChart.propTypes = {
/**
* Type of Y scale - provided by XYPlot.
*/
yScaleType: _propTypes2.default.string
yScaleType: _propTypes2.default.string,
/**
* D3 curve for path generation
*/
curve: _propTypes2.default.func
};
AreaChart.defaultProps = {
shouldShowGaps: true,
Expand Down Expand Up @@ -191791,7 +191800,7 @@ exports.default = AreaChartExamples;
/* 1423 */
/***/ (function(module, exports) {

module.exports = {"description":"`AreaChart` represents a simple bivariate area chart,\na filled path drawn between two lines (datasets).","methods":[{"name":"getDomain","docblock":null,"modifiers":["static"],"params":[{"name":"props","type":null}],"returns":null}],"props":{"data":{"type":{"name":"array"},"required":true,"description":"the array of data objects"},"x":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area X values, called once per datum,\nor a single Y value to be used for the entire line."},"y":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area's starting (minimum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the minimum of the Y range spanned by the area at this point."},"yEnd":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area's ending (maximum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the maximum of the Y range spanned by the area at this point."},"pathClassName":{"type":{"name":"string"},"required":false,"description":"Class attribute to be applied to area path element.","defaultValue":{"value":"\"\"","computed":false}},"pathStyle":{"type":{"name":"object"},"required":false,"description":"Inline style object to be applied to area path element."},"isDifference":{"type":{"name":"bool"},"required":false,"description":"If isDifference is true, AreaChart generates a \"difference chart\" with two area paths instead of one:\none path which shows when YEnd > Y, and one vice versa, allowing them to be styled differently (eg red/green)."},"pathStylePositive":{"type":{"name":"object"},"required":false,"description":"When isDifference is true, pathStylePositive and pathStyleNegative can be passed to give 2 different inline\nstyles to the two different paths which are generated.\nIgnored if isDifference is false."},"pathStyleNegative":{"type":{"name":"object"},"required":false,"description":""},"shouldShowGaps":{"type":{"name":"bool"},"required":false,"description":"If true, will show gaps in the shaded area for data where props.isDefined(datum) returns false.","defaultValue":{"value":"true","computed":false}},"isDefined":{"type":{"name":"func"},"required":false,"description":"If shouldShowGaps is true, isDefined function describes when a datum should be considered \"defined\" vs. when to show gap\nby default, shows gap if either y or yEnd are undefined.","defaultValue":{"value":"(d, i, accessors) => {\n return (\n !_.isUndefined(accessors.y(d, i)) &&\n !_.isUndefined(accessors.yEnd(d, i))\n );\n}","computed":false}},"xScale":{"type":{"name":"func"},"required":false,"description":"D3 scale for X axis - provided by XYPlot."},"yScale":{"type":{"name":"func"},"required":false,"description":"D3 scale for Y axis - provided by XYPlot."},"xScaleType":{"type":{"name":"string"},"required":false,"description":"Type of X scale - provided by XYPlot."},"yScaleType":{"type":{"name":"string"},"required":false,"description":"Type of Y scale - provided by XYPlot."}}}
module.exports = {"description":"`AreaChart` represents a simple bivariate area chart,\na filled path drawn between two lines (datasets).","methods":[{"name":"getDomain","docblock":null,"modifiers":["static"],"params":[{"name":"props","type":null}],"returns":null}],"props":{"data":{"type":{"name":"array"},"required":true,"description":"the array of data objects"},"x":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area X values, called once per datum,\nor a single Y value to be used for the entire line."},"y":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area's starting (minimum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the minimum of the Y range spanned by the area at this point."},"yEnd":{"type":{"name":"custom","raw":"CustomPropTypes.valueOrAccessor"},"required":false,"description":"Accessor function for area's ending (maximum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the maximum of the Y range spanned by the area at this point."},"pathClassName":{"type":{"name":"string"},"required":false,"description":"Class attribute to be applied to area path element.","defaultValue":{"value":"\"\"","computed":false}},"pathStyle":{"type":{"name":"object"},"required":false,"description":"Inline style object to be applied to area path element."},"isDifference":{"type":{"name":"bool"},"required":false,"description":"If isDifference is true, AreaChart generates a \"difference chart\" with two area paths instead of one:\none path which shows when YEnd > Y, and one vice versa, allowing them to be styled differently (eg red/green)."},"pathStylePositive":{"type":{"name":"object"},"required":false,"description":"When isDifference is true, pathStylePositive and pathStyleNegative can be passed to give 2 different inline\nstyles to the two different paths which are generated.\nIgnored if isDifference is false."},"pathStyleNegative":{"type":{"name":"object"},"required":false,"description":""},"shouldShowGaps":{"type":{"name":"bool"},"required":false,"description":"If true, will show gaps in the shaded area for data where props.isDefined(datum) returns false.","defaultValue":{"value":"true","computed":false}},"isDefined":{"type":{"name":"func"},"required":false,"description":"If shouldShowGaps is true, isDefined function describes when a datum should be considered \"defined\" vs. when to show gap\nby default, shows gap if either y or yEnd are undefined.","defaultValue":{"value":"(d, i, accessors) => {\n return (\n !_.isUndefined(accessors.y(d, i)) &&\n !_.isUndefined(accessors.yEnd(d, i))\n );\n}","computed":false}},"xScale":{"type":{"name":"func"},"required":false,"description":"D3 scale for X axis - provided by XYPlot."},"yScale":{"type":{"name":"func"},"required":false,"description":"D3 scale for Y axis - provided by XYPlot."},"xScaleType":{"type":{"name":"string"},"required":false,"description":"Type of X scale - provided by XYPlot."},"yScaleType":{"type":{"name":"string"},"required":false,"description":"Type of Y scale - provided by XYPlot."},"curve":{"type":{"name":"func"},"required":false,"description":"D3 curve for path generation"}}}

/***/ }),
/* 1424 */
Expand Down Expand Up @@ -195733,4 +195742,4 @@ exports.default = Playground;

/***/ })
/******/ ]);
//# sourceMappingURL=bundle.5444d2714eccb376e78e.js.map
//# sourceMappingURL=bundle.aeeaaf0490977d768c29.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"contributors": [
"Kris Salvador <kriss@spotify.com>"
],
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",
"files": [
"*.js",
Expand Down

0 comments on commit 808264d

Please sign in to comment.