on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
10 lines (9 loc) • 402 B
TypeScript
import { ChartPoint, ChartSeries, ChartOptions } from '../types';
import { BaseChartRenderer } from './BaseChartRenderer';
export declare class PieChartRenderer extends BaseChartRenderer {
render(ctx: CanvasRenderingContext2D, data: ChartPoint[] | ChartSeries[], options: ChartOptions): void;
private normalizeData;
private drawSlices;
private drawLabels;
private drawCenterInfo;
}