diff --git a/.gitignore b/.gitignore index dfad54d..ed8166f 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ node_modules .DS_Store showcase .generator-release + +.idea/* \ No newline at end of file diff --git a/lib/core.js b/lib/core.js index 5cfa723..871c51e 100644 --- a/lib/core.js +++ b/lib/core.js @@ -42,6 +42,7 @@ module.exports = { } else { dataKey = dataKey || dataKeys[chart.name]; updatePoints(nextProps, chart, dataKey); + chart.scale.xLabels = nextProps.data.labels; chart.update(); } };