[+] Truncate text if too long

This commit is contained in:
Hykilpikonna
2019-09-29 17:38:53 -04:00
parent 6c1623cec5
commit fc625c8edb
@@ -34,7 +34,13 @@ export default class GraphAverage extends Vue
axisLabel: {
interval: 0,
inside: false,
rotate: 90
rotate: 60,
// Truncate text length
formatter: (value: string, index: number) =>
{
return value.length <= 16 ? value : value.substr(0, 14) + '...';
}
},
},