Skip to content

Commit 6e61700

Browse files
authored
feat: text improvements (#524)
BREAKING CHANGE: renames in `Partition` charts— `Layers`: `fillLabel.formatter`->`fillLabel.valueFormatter`; type `FillLabel`-> `FillLabelConfig` Non-breaking changes: * feat: the values in linked labels are rendered, just like they have been in the sectors (formerly, the value could optionally be put in the link label accessor itself) * feat: font styling is possible separately for values: `valueFormatter` configs * test: opacity decrease example; coloring examples * feat: hierarchical data (`parent`, `sortIndex`) is made available to accessors (see stories, helpful with eg. coloring) * refactor: tighter types; other code improvements
1 parent 1111671 commit 6e61700

42 files changed

Lines changed: 608 additions & 255 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.playground/playground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Playground extends React.Component<{}, { isSunburstShown: boolean }
2525
{
2626
groupByRollup: (d: Datum) => d.id,
2727
nodeLabel: (d: Datum) => d,
28-
fillLabel: { formatter: (d: Datum) => `${d} pct` },
28+
fillLabel: { valueFormatter: (d: Datum) => `${d} pct` },
2929
},
3030
]}
3131
/>
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)