Skip to content

Not Plotting In Safari #836

Closed
dnschnur opened this Issue Sep 28, 2012 · 2 comments

3 participants

@dnschnur
Flot member

Original author: mike.mal...@gmail.com (September 25, 2012 15:00:41)

I have a few graphs that render perfectly in Chrome and Firefox, but not in Safari (5.1.7)

The grid, axis, tick labels and legend all render, but the points are not being displayed in the graph.

It is a time series graph. I commented out the " mode: 'time' " to see if that had any effect, but it did not.

Any thoughts?

Original issue: http://code.google.com/p/flot/issues/detail?id=757

@zlippard

I had the same problem and it was driving me nuts. For me, I was using date ranges for the start and end points on the xaxis. If you're using dates, try switching from 'new Date("yyyy-mm-dd").getTime()' (or whatever other method you're using) to 'new Date(yyyy, mm, dd, 0, 0, 0, 0).getTime()' The old format of yyyy-mm-dd I was using doesn't work in Safari. When calling getTime with that format, Safari returns a NaN value instead of millisecond time.

Hope this helps.

-Zac

@dnschnur dnschnur closed this Oct 19, 2012
@echteinfachtv

I had this problem as well. Firefox and Chrome were fine, Safari not.

I solved the problem by replacing the hyphens with slashes: e.g. "2013-10-03" became "2013/10/03" and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.