Commit b7cd017d authored by amarcic's avatar amarcic
Browse files

timeline, tooltips: added translation

parent 373888c6
......@@ -11,6 +11,7 @@
"Data sources": "Herkunft der Daten",
"Timeline": "Zeitstrahl",
"Temporal distribution": "Zeitliche Verteilung",
"item/s": "Objekt/e",
"Turn on/off marker clustering": "Gruppieren von Markern",
"Resize map to show all markers": "Kartenausschnitt für aktuelle Marker anpassen"
......@@ -191,10 +191,9 @@ export const TimelineChart = (props) => {
.attr("class", "tooltip")
//todo: label should use translations
.text( value => yScale.bandwidth() <= labelRenderLimit
? `${value.periodName}: ${value.items.length} item/s`
: `${value.items.length} items/s`)
? `${value.periodName}: ${value.items.length} ${t("item/s")}`
: `${value.items.length} ${t("item/s")}`)
.attr("text-anchor", "middle")
.attr("x", value => xScale(value.periodSpan?.[0]))
.attr("y", value => yScale(value.periodId)+yScale.bandwidth()/**/)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment