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