Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 30e77c8

Browse files
committed
Update x-labels without full redraw
1 parent 5d9a2eb commit 30e77c8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ node_modules
3030
.DS_Store
3131
showcase
3232
.generator-release
33+
34+
.idea/*

lib/core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = {
4242
} else {
4343
dataKey = dataKey || dataKeys[chart.name];
4444
updatePoints(nextProps, chart, dataKey);
45+
chart.scale.xLabels = nextProps.data.labels;
4546
chart.update();
4647
}
4748
};

0 commit comments

Comments
 (0)