UNPKG

handwritten-graph

Version:

A TypeScript library to create handwritten-style line graphs and pie charts using D3.js

26 lines 845 B
import { BaseChart } from '../core/BaseChart'; import { PieChartData, PieChartConfig } from '../types'; export declare class PieChart extends BaseChart<PieChartData, PieChartConfig> { private radius; private pie; private arc; private tooltip; private processedData; private total; constructor(selector: string, data: PieChartData, config?: Partial<PieChartConfig>); private static validateAndProcessData; private processData; private initializePieComponents; protected render(): void; private renderEmptyState; private createFillPatterns; private renderArcs; private handDrawnArc; private renderLegend; private setupInteractions; private handleMouseOver; private handleMouseMove; private handleMouseOut; destroy(): void; } //# sourceMappingURL=PieChart.d.ts.map