Sha256: f401b9789a6884f714ab66fa226ee48278508b5b044c6cc921a4529496793f83

Contents?: true

Size: 892 Bytes

Versions: 1782

Compression:

Stored size: 892 Bytes

Contents

import React from 'react'

import TreemapChart from '../_treemap_chart'

const chartData = [
  {
    name: "Pepperoni",
    parent: "Toppings",
    value: 600,
  }, {
    name: "Cheese",
    parent: "Toppings",
    value: 510,
  }, {
    name: "Mushroom",
    parent: "Toppings",
    value: 330,
  },{
    name: "Onions",
    parent: "Toppings",
    value: 250,
  }, {
    name: "Olives",
    parent: "Toppings",
    value: 204,
  }, {
    name: "Pineapple",
    parent: "Toppings",
    value: 90,
  }, {
    name: "Pizza Toppings",
    id: "Toppings",
  },
]

const TreemapChartTooltip = (props) => (
  <div>
    <TreemapChart
        chartData={chartData}
        id="treemap-tooltip"
        title="Favored Pizza Toppings"
        tooltipHtml= '<p>Custom tooltip for {point.name} <br/>with value: {point.value}</p>'
        {...props}
    />
  </div>
)

export default TreemapChartTooltip

Version data entries

1,782 entries across 1,782 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx