Skip to content

Commit

Permalink
fix(website): show treemap data correctly (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored Jun 30, 2021
1 parent 9c00efa commit de05d72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/src/pages/treemap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import mapper from '../../data/components/treemap/mapper'
import { groups } from '../../data/components/treemap/props'
import { generateLightDataSet } from '../../data/components/treemap/generator'

const generateData = () => generateLightDataSet().root

const initialProperties = {
identity: 'name',
value: 'loc',
Expand Down Expand Up @@ -75,12 +77,12 @@ const TreeMap = () => {
initialProperties={initialProperties}
defaultProperties={TreeMapDefaultProps}
propertiesMapper={mapper}
generateData={generateLightDataSet}
generateData={generateData}
>
{(properties, data, theme, logAction) => {
return (
<ResponsiveTreeMap
data={data.root}
data={data}
{...properties}
theme={theme}
onClick={node => {
Expand Down

0 comments on commit de05d72

Please sign in to comment.