Skip to content

Unexpected token ILLEGAL #39

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

Closed
robz opened this issue Nov 25, 2015 · 1 comment
Closed

Unexpected token ILLEGAL #39

robz opened this issue Nov 25, 2015 · 1 comment

Comments

@robz
Copy link

robz commented Nov 25, 2015

It seems like there are a lot of greek unicode characters in d3.js and projections.js.

https://github.com/plotly/plotly.js/blob/master/src/plots/geo/projections.js#L355

These characters are causing an "Unexpected token ILLEGAL" error in Chrome 46, and likely most browsers.

@etpinard
Copy link
Contributor

You should import unminified plotly.js code with charset="utf-8".

For example, like the test dashboard index:

<script type="text/javascript" src="plotly.js" charset="utf-8"></script>

Note that the minified version (under dist/plotly.min.js) has all non-ascii characters removed thanks to uglify-js.

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

3 participants