"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",a="NiceChart",t="Chart",i="1.0.0",n="stable",s="charts",r="visualization",o="A versatile SVG-based chart component supporting bar, line, and area charts with stacking, zoom, crosshair, annotations, legend interaction and PNG export capabilities.",l="1.0.0",c=["web","desktop"],d=["chart","bar","line","area","graph","visualization","data"],p=[{name:"series",type:"NiceChartSeries[]",required:!0,description:"Array of data series to display."},{name:"categories",type:"string[]",required:!1,description:"X-axis category labels."},{name:"width",type:"number",required:!1,default:"600",description:"Chart width in pixels."},{name:"height",type:"number",required:!1,default:"400",description:"Chart height in pixels."},{name:"title",type:"string",required:!1,description:"Chart title displayed above the chart."},{name:"showLegend",type:"boolean",required:!1,default:"true",description:"Show the legend."},{name:"showGrid",type:"boolean",required:!1,default:"true",description:"Show background grid lines."},{name:"showTooltip",type:"boolean",required:!1,default:"true",description:"Show tooltips on hover."},{name:"yAxisLabel",type:"string",required:!1,description:"Y-axis label text."},{name:"xAxisLabel",type:"string",required:!1,description:"X-axis label text."},{name:"stacked",type:"boolean",required:!1,default:"false",description:"Stack series values."},{name:"zoomable",type:"boolean",required:!1,default:"false",description:"Enable zoom/pan via mouse wheel and drag."},{name:"crosshair",type:"boolean",required:!1,default:"false",description:"Show crosshair line at mouse position."},{name:"annotations",type:"NiceChartAnnotation[]",required:!1,description:"Annotations: horizontal lines, labels on chart."},{name:"legendInteractive",type:"boolean",required:!1,default:"false",description:"Click legend items to toggle series visibility."},{name:"onDataPointClick",type:"(seriesName: string, dataIndex: number, value: number) => void",required:!1,description:"Called when a data point is clicked for drill-down."},{name:"exportable",type:"boolean",required:!1,default:"false",description:"Show export button to download chart as PNG."}],u=[{name:"onDataPointClick",parameters:[{name:"seriesName",type:"string"},{name:"dataIndex",type:"number"},{name:"value",type:"number"}],description:"Fired when a data point is clicked."}],m=[{name:"--nice-chart-grid-color",default:"#e5e7eb",description:"Grid line color"},{name:"--nice-chart-axis-color",default:"#6b7280",description:"Axis text color"},{name:"--nice-chart-tooltip-bg",default:"#1f2937",description:"Tooltip background"}],h={aria:['role="img"',"aria-label"],notes:"Charts should have descriptive title and aria-label for screen readers. Consider providing a data table alternative."},b=[{title:"Basic Line Chart",code:`<NiceChart
  series={[
    { name: 'Sales', data: [10, 20, 30, 40, 50], type: 'line' },
    { name: 'Expenses', data: [15, 25, 20, 35, 30], type: 'line' }
  ]}
  categories={['Jan', 'Feb', 'Mar', 'Apr', 'May']}
  title="Monthly Performance"
/>`,language:"tsx"},{title:"Stacked Bar Chart",code:`<NiceChart
  series={[
    { name: 'Product A', data: [100, 200, 150], type: 'bar' },
    { name: 'Product B', data: [80, 120, 180], type: 'bar' }
  ]}
  categories={['Q1', 'Q2', 'Q3']}
  stacked
/>`,language:"tsx"}],y=[{name:"NicePieChart",relationship:"alternative"},{name:"NiceSparkline",relationship:"similar"},{name:"NiceStockChart",relationship:"specialized"}],f={$schema:e,name:a,displayName:t,version:i,status:n,category:s,subcategory:r,package:"@nicetoDev/ui",description:o,since:l,platforms:c,keywords:d,props:p,events:u,cssVariables:m,accessibility:h,examples:b,related:y};exports.$schema=e;exports.accessibility=h;exports.category=s;exports.cssVariables=m;exports.default=f;exports.description=o;exports.displayName=t;exports.events=u;exports.examples=b;exports.keywords=d;exports.name=a;exports.platforms=c;exports.props=p;exports.related=y;exports.since=l;exports.status=n;exports.subcategory=r;exports.version=i;
