score:2

Accepted answer

i found the solution, thanks to meetamit and this question:

how to sort a javascript array of objects by date

apparently the d3 date format is not handled well across browsers. using the native javascript date object solves the issue:

alldates.sort(function(a,b) { return new date(a.datum).gettime() - new date(b.datum).gettime() } );
data.sort(function(a,b) { return new date(a.datum).gettime() - new date(b.datum).gettime() } );

thanks for the help guys!

score:1

it can't be a problem with the rendering, given that the circles and path points are positioned consistently with each other. so it's got to be a data issue; there's something off with kontodata. more specifically, it's got to be a sorting thing, since all the line's x values correspond to bar positions (just the wrong ones).

your post doesn't show how you prepare the data, so can't help you any further. look for problems related to sorting. it has to be something that's browser-sensitive. two things that comes to mind are dates and object keys. by "dates", i mean that maybe the different browsers are parsing the date differently. by "object keys" i mean that maybe something in your code iterates over the keys of an object (using a for..in loop) and assumes that the keys will appear in a consistent order, which would be an incorrect assumption.


Related Query