[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:
@@ -61,10 +61,12 @@ define(
|
|||||||
i;
|
i;
|
||||||
|
|
||||||
for (i = 0; i < count; i += 1) {
|
for (i = 0; i < count; i += 1) {
|
||||||
tickVal = format(i * step + start).toString();
|
tickVal = format(i * step + start);
|
||||||
// Make the tick value have its ellipsis on the least significant left side by reversing it here,
|
if (tickVal != undefined) {
|
||||||
// and then reversing it again via CSS.
|
// Make the tick value have its ellipsis on the least significant left side by reversing it here,
|
||||||
tickVal = tickVal.split('').reverse().join('');
|
// and then reversing it again via CSS.
|
||||||
|
tickVal = tickVal.toString().split('').reverse().join('');
|
||||||
|
}
|
||||||
result.push({
|
result.push({
|
||||||
//If data to show, display label for each tick line, otherwise show lines but suppress labels.
|
//If data to show, display label for each tick line, otherwise show lines but suppress labels.
|
||||||
label: span > 0 ? tickVal : ''
|
label: span > 0 ? tickVal : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user