Skip to content

Commit

Permalink
Time series: fix bug about labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ilariaventurini committed Apr 24, 2020
1 parent 1eb9165 commit 7c055fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/axes/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class Axis extends Component {

// Remove labels on the edges
// If there are more than 2 labels to show
if (Tools.getProperty(options, "timeScale", "addSpaceOnEdges") && tickValues.length > 2) {
if (tickValues.length > 2) {
tickValues.splice(tickValues.length - 1, 1);
tickValues.splice(0, 1);
}
Expand Down

0 comments on commit 7c055fe

Please sign in to comment.