Comments (6)
Could you give an example on jsfiddle.net or similar site?
from chart.scatter.
Also see this example
setInterval(function () {
var arg = Date.parse("2015-04-27T04:00:00+03:00") + ii * 24 * 3600000;
myChart.datasets[0].removePoint(0);
myChart.datasets[1].removePoint(0);
myChart.datasets[0].addPoint(arg, getRandomInt(0, 100));
myChart.datasets[1].addPoint(arg, getRandomInt(0, 100));
myChart.update(), ii++;
}, 200);
from chart.scatter.
Also please check the order of your points :)
from chart.scatter.
Thanks for that example, you can see the behaviour I'm talking about if you don't remove point 0
http://jsfiddle.net/9ozpmk6q/7/
I redid your example a bit to make it more closely match what I'm doing.
from chart.scatter.
The reason is in sort order of your points.
Your example uses the following data:
{
"results": [
{ "humidity": "57.80", "temp": "25.00", "timestamp": 1435230516 },
{ "humidity": "57.80", "temp": "25.00", "timestamp": 1435230457 },
{ "humidity": "58.00", "temp": "25.10", "timestamp": 1435230397 }
]
}
from chart.scatter.
Your completely right, for some reason I had it in my head that it was sorting it by date. Thanks for clearing it up.
from chart.scatter.
Related Issues (20)
- Bug only one point chart HOT 5
- Bezier curve tension HOT 1
- Modify only newly drawn points on update. HOT 1
- Bug: graph data about scale (x and y values) HOT 1
- Bug: scaleOverride floating point error HOT 1
- documentation for xScaleOverride options HOT 9
- this.hasData line 1062 reflects the initial data, breaks initial empty scenario HOT 1
- customTooltips not working properly HOT 1
- xScaleOverride doesnt work HOT 4
- Displaying the tooltip for multiple data at once.
- Date Scale X Axis not displaying properly on FireFox
- Programmatic Pan+Zoom
- How do you make the x and y scale equal
- Ticks between steps
- Support for Bar Charts?
- Support Chart.js 2.x
- Showing legend HOT 3
- Setting up Chart.Scatter with proper files. HOT 1
- Strange jitter HOT 2
- Increasing the width of canvas to more than 30000px hides the chart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart.scatter.