mirror of
https://github.com/nasa/openmct.git
synced 2025-04-20 00:51:09 +00:00
[Frontend] Mods to allow plot tick labels to ellipsis to left
open #337 Still fixing code due to circleci fail in pull request;
This commit is contained in:
parent
f8114ba6b6
commit
5e628b1a25
@ -61,10 +61,12 @@ define(
|
||||
i;
|
||||
|
||||
for (i = 0; i < count; i += 1) {
|
||||
tickVal = format(i * step + start).toString();
|
||||
// Make the tick value have its ellipsis on the least significant left side by reversing it here,
|
||||
// and then reversing it again via CSS.
|
||||
tickVal = tickVal.split('').reverse().join('');
|
||||
tickVal = format(i * step + start);
|
||||
if (tickVal != undefined) {
|
||||
// Make the tick value have its ellipsis on the least significant left side by reversing it here,
|
||||
// and then reversing it again via CSS.
|
||||
tickVal = tickVal.toString().split('').reverse().join('');
|
||||
}
|
||||
result.push({
|
||||
//If data to show, display label for each tick line, otherwise show lines but suppress labels.
|
||||
label: span > 0 ? tickVal : ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user