Arelle / ixbrl-viewer

The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
Other
93 stars 56 forks source link

[REQUEST] For UTR units, display the unit's name rather than unit's qname in Fact properties #576

Open strr opened 10 months ago

strr commented 10 months ago

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 the unitId in the UTR and output the unitName in its place)

paulwarren-wk commented 10 months 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.

strr commented 9 months ago

Symbol rather than name is fine with me.

aaroncameron-wk commented 1 month ago

@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

paulwarren-wk commented 1 month ago

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.