0

I have downloaded the d3.js file from the d3js.org , when i copied this to the script folder in web-content of my Dynamic web project , the js file is red marked , and eclipse complaining with error : invalid character . How to add this file ? ?

1
  • it showing error on some particular lines , i think those characters are not readable by the eclipse , as it is using UTF-8 Commented Mar 20, 2014 at 12:43

1 Answer 1

1

I manually created a d3.js file and then copy-pasted the contents of the d3.js file. The charset should be UTF-8 when copying. It worked fine. However, I am getting an error at the first line where you have the "!function() {"

Is the '!' required?

Sign up to request clarification or add additional context in comments.

2 Comments

Another solution is to reference it directly from the website. Add this to your html file: <script src="d3js.org/d3.v3.min.js" charset="utf-8" />
Yes till now i am doing that only !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.