Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jqPlot fails to recognize ISO formatted date string in Firefox #198

Open
mem76 opened this issue Jan 28, 2021 · 1 comment
Open

jqPlot fails to recognize ISO formatted date string in Firefox #198

mem76 opened this issue Jan 28, 2021 · 1 comment

Comments

@mem76
Copy link

mem76 commented Jan 28, 2021

Summary

The code returns an error in Firefox (but works in Chrome and Microsoft Edge)

It's understandable that jqPlot do not recognize all date string, but this is ISO 8601 formatted string with timezone. So there is no ambiguity of what the correct timestamp is.

If jqPlot have some limitation of what it supports in the ISO 8601, this should be clearly stated in the documentation (like using T in stead of ' ').

For the user, the bug manifestate itself by not showing the graph.

The code

var line1=[['2021-01-27 23:24:00+01',1], ['2021-01-27 23:25:00+01',1]] var plot2 = $.jqplot('videonotat_viewers', [line1], { title:'Direktesening, antall seere', axes:{ xaxis:{ renderer:$.jqplot.DateAxisRenderer, tickOptions: {formatString:'%b %#d, %#I %p'}, tickInterval:'1 hour' }, yaxis: { min:0 } }, series:[{lineWidth:4, markerOptions:{show:false}}] }); });

Error

Uncaught TypeError: this.proxy.getTime is not a function jQuery 5 <anonymous> (index):164 jQuery 11 jquery.jqplot.js:9706:27

@mem76
Copy link
Author

mem76 commented Jan 28, 2021

The versjon of jqPlot is the newest production version as of today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant