Sha256: fde199e1b941948504ceb509cb7ea11f1750bd41e7a8cae78903ac1553707eb4
Contents?: true
Size: 893 Bytes
Versions: 69
Compression:
Stored size: 893 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
69 entries across 69 versions & 1 rubygems