UNPKG

@progress/kendo-react-charts

Version:

React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package

9 lines (8 loc) 1.34 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const e=d(m),i="k-chart-shared-tooltip-marker",p=t=>{const{categoryText:r,colorMarker:n,colspan:l,nameColumn:o,points:c}=t,s=(a,u)=>e.createElement("tr",{key:u},n&&e.createElement("td",null,e.createElement("span",{className:i,style:{backgroundColor:a.series.color}})),o&&e.createElement("td",null,a.series.name),e.createElement("td",{dangerouslySetInnerHTML:{__html:a.formattedValue}}));return e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{colSpan:l},r))),e.createElement("tbody",null,c.map(s)))};exports.SharedTooltipContent=p;