Ng2-charts: Update problem with scatter chart

Created on 24 May 2016  路  3Comments  路  Source: valor-software/ng2-charts

I have a update problem with scatter chart:
data is initialized with some dummy xy-data => plot ok
data is changed first time => plot updates ok
data is changed second time => Plot is not updated
data is changed further => Plot is not updated

My dependencies:

dependencies": {
"@angular/common": "2.0.0-rc.1",
"ng2-charts": "^1.1.0",
"chart.js": "^2.1.3",
"chart.js-scatter": "^1.1.3"

Most helpful comment

Out of curiousity - how did you create your ng2-chart with chart.js-scatter?

All 3 comments

Out of curiousity - how did you create your ng2-chart with chart.js-scatter?

For anyone else who finds this thread, by setting the borderColor to "transparent" in the colors directive I was able to make a line chart look like a scatter plot. I assume that a best-fit/trend line would need to be calculated outside of the library and provided as a second dataset.

This package now supports the scatter chart type. See this stackblitz https://stackblitz.com/edit/ng2-charts-scatter

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tushartgsit picture tushartgsit  路  5Comments

grahammutter picture grahammutter  路  4Comments

edarev picture edarev  路  5Comments

brandonreid picture brandonreid  路  3Comments

martinpinto picture martinpinto  路  3Comments