# Short strings in graph axis

**URL:** <https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306>\
**Category:** Translating\
**Created:** [July 23, 2020, 1:44am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306 "2020-07-23T01:44:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 23, 2020, 1:44am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/1 "2020-07-23T01:44:56Z")

</div>

@sivan22 @mmdj2 @abdo

Those new graph strings may get cut off if they’re not kept short - is there no custom of shortening them (eg 1 second = 1s) in your languages? The tooltip continues to use the long names, which should help to clarify what the abbreviations mean.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 23, 2020, 1:50am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/2 "2020-07-23T01:50:01Z")

</div>

The original report was:

> [@Scale on the 2.1.28 review-time graph is cut off](https://forums.ankiweb.net/t/scale-on-the-2-1-28-review-time-graph-is-cut-off/1248):
>
> Just starting to get back into Anki again after a couple of years of intermittent use, and I’m loving the new stats in 2.1.28! However, the y-axis scale of the Reviews graph does not appear to have quite enough horizontal space allocated to it. This is sometimes bad enough to make it difficult or impossible to interpret, as in the following screenshot: The data itself is still correct. This screenshot is on a nearly fresh install of Manjaro Linux using the official buil…

Strings shorter than “minutes” may be ok, but the shorter, the less likely it is to get cut off.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [July 23, 2020, 2:32am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/3 "2020-07-23T02:32:25Z")

</div>

I first chose not to use abbreviations since they are not really common in Arabic, but I changed the strings anyway.

---

<div class="post-metadata">

**Author:** ![mmdj2](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/mmdj2/32/124_2.png) [@mmdj2](https://forums.ankiweb.net/u/mmdj2)\
**Post date:** [July 23, 2020, 3:20am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/4 "2020-07-23T03:20:32Z")

</div>

unfortunately there is no abbreviation for those in Persian. (even if we use 2 letter as abbreviation, year and hour abbreviations are the same (سا and سا) and if we use 3 letters, shortening the words doesn’t make any sense tbh as the original word are 3 and 4 letters)  
but we can use the English abbreviations and not translate them at all. most of users should understand what those mean, and for the rest, they can hover over graphs (if the tooltips can still show the full words)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 23, 2020, 6:36am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/5 "2020-07-23T06:36:32Z")

</div>

Thanks - happy to go with whatever you think is the least-bad solution.

---

<div class="post-metadata">

**Author:** ![mmdj2](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/mmdj2/32/124_2.png) [@mmdj2](https://forums.ankiweb.net/u/mmdj2)\
**Post date:** [July 23, 2020, 6:43am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/6 "2020-07-23T06:43:05Z")

</div>

actually, just checked that part of stats for Persian.  
Persian translation takes up less space and is able to show the full string. should i still change them?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/283b7676103b054a69f490b3ac02f270188024c7.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/6fbc5502362cfe08250cba43facf0b907f0ccec2.png)

and i think the direction for text in new stats isn’t right-to-left for Persian (or all rtl languages) and that causes all these:

1: Periods on the wrong side of the sentence  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/9976866ea4bf5d54f88b6fef4931415fdff0f85c.png)

2: messed up strings when these is any number/non-Persian letter are in string  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/c970e53ba319c5c9dc1e700dd7d872bdd1a23b3c.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/08025aa4afa40bc1eb3a28413ce6fa5e6da9c155.png)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 24, 2020, 12:40am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/7 "2020-07-24T00:40:45Z")

</div>

Feel free to leave it as it is - if I get a report of the text being truncated I’ll let you know.

Switching the entire page to RTL unfortunately causes other problems, such as the axis text overlapping the graph area, so supporting that looks to be a bit more involved.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:02am UTC](https://forums.ankiweb.net/t/short-strings-in-graph-axis/1306/8 "2023-05-01T03:02:46Z")

</div>

Closed on May 1, 2023, 3:02am UTC


