From 7fa90ec748bb7c06d363de9fc718edaea8320b91 Mon Sep 17 00:00:00 2001 From: Michael Freeman Date: Wed, 13 Nov 2024 14:18:19 -0500 Subject: [PATCH] Stringify tick labels (#58) --- src/getPlotOptions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/getPlotOptions.ts b/src/getPlotOptions.ts index 38d6843..4333d0f 100644 --- a/src/getPlotOptions.ts +++ b/src/getPlotOptions.ts @@ -338,8 +338,9 @@ export function getTickFormatter( ) { if (colType === "string") { return { - tickFormat: (text: string) => - truncateText(text, direction, width, height), + tickFormat: (value: unknown) => { + return truncateText(String(value), direction, width, height); + }, }; } return {};