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

Epoch doesn't work in the normal way #237

Open
SuperCSS opened this issue Dec 5, 2017 · 0 comments
Open

Epoch doesn't work in the normal way #237

SuperCSS opened this issue Dec 5, 2017 · 0 comments

Comments

@SuperCSS
Copy link

SuperCSS commented Dec 5, 2017

When I tried to use Epoch just in the very simple way, it broke and threw this error:
jQuery.Deferred exception: this.el.width is not a function TypeError: this.el.width is not a function
at Line.Base [as constructor] (http://localhost:9000/vendor/epoch.js:480:30)
at Line.Canvas [as constructor] (http://localhost:9000/vendor/epoch.js:790:34)
at Line.Plot [as constructor] (http://localhost:9000/vendor/epoch.js:2486:32)
at new Line (http://localhost:9000/vendor/epoch.js:3782:32)
at r.fn.init.$.fn.epoch (http://localhost:9000/vendor/epoch.js:3859:37)

My code was so simple:
$('#epochHolder').epoch({ type: 'time.line', data: data });

Here,
data = [ { label: "Series 1", values: [ {time: 1370044800, y: 100}, {time: 1370044801, y: 1000}] }, { label: "Series 2", values: [ {time: 1370044800, y: 78}, {time: 1370044801, y: 98}] } ];

Has Epoch broken or any version issue?
I used epoch.js v0.8.4, d3 v3.5.17
Thanks

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