[O] Optimize code length
This commit is contained in:
@@ -37,10 +37,7 @@ export default class GraphAverage extends Vue
|
|||||||
rotate: 60,
|
rotate: 60,
|
||||||
|
|
||||||
// Truncate text length
|
// Truncate text length
|
||||||
formatter: (value: string, index: number) =>
|
formatter: (value: string) => value.length <= 16 ? value : value.substr(0, 14) + '...'
|
||||||
{
|
|
||||||
return value.length <= 16 ? value : value.substr(0, 14) + '...';
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user