Skip to content

Commit

Permalink
fix(website): update circle-packing page code
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed May 3, 2021
1 parent 150870e commit dbc0aed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions website/src/pages/circle-packing/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ const CirclePackingApi = () => {
valueFormat: { format: '', enabled: false },
colors: { scheme: 'nivo' },
colorBy: 'depth',
inheritColorFromParent: false,
childColor: {
from: 'color',
modifiers: [['darker', 0.3]],
},
padding: 1,
enableLabel: true,
enableLabels: true,
leavesOnly: false,
label: 'id',
labelSkipRadius: 8,
labelsSkipRadius: 8,
labelTextColor: {
from: 'color',
modifiers: [['darker', 0.8]],
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/circle-packing/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const CirclePackingHtml = () => {
>
{(properties, data, theme, logAction) => {
return (
<ResponsiveBubbleHtml
<ResponsiveCirclePackingHtml
root={data}
{...properties}
theme={theme}
Expand Down

0 comments on commit dbc0aed

Please sign in to comment.