mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-16 13:55:51 -07:00
style(stats): format vocabulary timeline mapping
This commit is contained in:
@@ -55,13 +55,15 @@ export function VocabularyTab({
|
|||||||
value: word.frequency,
|
value: word.frequency,
|
||||||
})) ?? [],
|
})) ?? [],
|
||||||
newWordsTimeline:
|
newWordsTimeline:
|
||||||
((hideNames ? charts?.newWordsTimelineWithoutNames : charts?.newWordsTimeline) ?? []).map((point) => ({
|
((hideNames ? charts?.newWordsTimelineWithoutNames : charts?.newWordsTimeline) ?? []).map(
|
||||||
label: epochDayToDate(point.epochDay).toLocaleDateString(undefined, {
|
(point) => ({
|
||||||
month: 'short',
|
label: epochDayToDate(point.epochDay).toLocaleDateString(undefined, {
|
||||||
day: 'numeric',
|
month: 'short',
|
||||||
|
day: 'numeric',
|
||||||
|
}),
|
||||||
|
value: point.wordCount,
|
||||||
}),
|
}),
|
||||||
value: point.wordCount,
|
) ?? [],
|
||||||
})) ?? [],
|
|
||||||
}),
|
}),
|
||||||
[charts, hideNames],
|
[charts, hideNames],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user