Open strr opened 1 year ago
Would it not be more appropriate to use the unit symbol here, rather than the name?
Perhaps we could put the name in a mouseover.
The UTR would also give us symbols for all the other currencies, but I think there are some subtleties around whether the symbol is normally before or after the value.
Symbol rather than name is fine with me.
@paulwarren-wk
These are some work-in-progress branches I just rebased from a while back. They make a number of related changes, including rendering a symbol when available. It also includes a tooltip for units on hover, and opens a unit legend window on click (although the rendering there is incomplete). I likely won't be able to prioritize work on this so feel free to use directly or simply as a suggestion.
https://github.com/aaroncameron-wk/arelle-public/tree/utr-entries https://github.com/aaroncameron-wk/ixbrl-viewer/tree/utr-entries
These are some work-in-progress branches I just rebased from a while back.
@aaroncameron-wk - thanks that's really helpful! It solves I hit with getting an incomplete UTR map for complex entries.
I'll try to merge your UI changes with mine, as I was just using title attributes for the tooltip.
What should we change and why?
At the moment, for any unit other than a currency, it is displayed in QName form.
Please consider using the metadata from the UTR so that instead of displaying a fact value as
Fact Value: 15,000 utr:MWh
They are instead formatted as something like:
Fact Value: 15,000 Megawatt-Hour
(i.e. lookup theunitId
in the UTR and output theunitName
in its place)