Skip to content

Commit

Permalink
1.10.0 release (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
krissalvador27 authored Feb 7, 2019
1 parent b899b1d commit 54415f8
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.10.0 (2018-12-21)

- [#144](https://github.com/spotify/reactochart/pull/144) Support for pie chart slice labels - thanks @joeporpeglia!

## 1.9.0 (2018-12-21)

- [#142](https://github.com/spotify/reactochart/pull/142) Update logic for getting invertPointScale & add click handlers to labels themselves
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
</div>

<div class="container-fluid" id="container">Loading...</div>
<script type="text/javascript" src="bundle.27f460e9163106e7462b.js"></script></body>
<script type="text/javascript" src="bundle.9570ae21d191f20de0ce.js"></script></body>
</html>
65 changes: 65 additions & 0 deletions docs/src/docs/PieChart/propDocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,34 @@
],
"returns": null
},
{
"name": "renderSliceLabel",
"docblock": null,
"modifiers": [],
"params": [
{
"name": "value",
"type": null
},
{
"name": "slice",
"type": null
},
{
"name": "center",
"type": null
},
{
"name": "radius",
"type": null
},
{
"name": "index",
"type": null
}
],
"returns": null
},
{
"name": "renderCenterLabel",
"docblock": null,
Expand Down Expand Up @@ -250,6 +278,43 @@
"computed": false
}
},
"getPieSliceLabel": {
"type": {
"name": "func"
},
"required": false,
"description": "Accessor for getting labels that are rendered outside each slice of the pie chart.\nIf not provided no labels will be rendered."
},
"pieSliceLabelStyle": {
"type": {
"name": "union",
"value": [
{
"name": "object"
},
{
"name": "func"
}
]
},
"required": false,
"description": "Inline style object applied to each slice label.\nWhen a function is provided it will receive the value for the slice and should return the\nstyle object for that slice's label.\nUsed along with `getPieSliceLabel`."
},
"pieSliceLabelDistance": {
"type": {
"name": "union",
"value": [
{
"name": "number"
},
{
"name": "func"
}
]
},
"required": false,
"description": "Distance to render the label from the outer edge of the pie chart. Positive numbers will\nmove away from the center and negative numbers will move toward the center.\nWhen a function is provided it will receive the value for the slice and should return the\ndistance for that slice's label.\nUsed along with `getPieSliceLabel`."
},
"pieSliceClassName": {
"type": {
"name": "union",
Expand Down
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 <[email protected]>"
],
"version": "1.9.0",
"version": "1.10.0",
"main": "index.js",
"files": [
"*.js",
Expand Down

0 comments on commit 54415f8

Please sign in to comment.