/**
 * SVG Chart Types
 *
 * Type definitions for the SVG chart system.
 */
// Default options
export const DEFAULT_CHART_OPTIONS = {
    width: 400,
    height: 200,
    backgroundColor: '#1a1a2e',
    lineColor: '#00ff88',
    fillColor: 'rgba(0, 255, 136, 0.2)',
    gridColor: '#333355',
    textColor: '#aaaaaa',
    showGrid: true,
    showLabels: true,
    padding: { top: 30, right: 20, bottom: 40, left: 50 },
};
/**
 * Format a number for display on charts.
 */
export function formatNumber(value) {
    if (Math.abs(value) >= 1000000) {
        return (value / 1000000).toFixed(1) + 'M';
    }
    if (Math.abs(value) >= 1000) {
        return (value / 1000).toFixed(1) + 'K';
    }
    if (Math.abs(value) < 1) {
        return value.toFixed(4);
    }
    return value.toFixed(2);
}
//# sourceMappingURL=types.js.map