jhuenges / highcharts-demo

Examples for the Meteor-Highcharts package by MaazAli
21 stars 6 forks source link

jquery and highcharts not working #3

Closed lumpyspacecoder closed 9 years ago

lumpyspacecoder commented 9 years ago

TypeError: $(...).highcharts is not a function is the error I am receiving at the statement:

chart = $("#container-chart-reactive").highcharts({ .....})

jhuenges commented 9 years ago

Are you getting this error simply by cloning the example? Could you give me a little bit more information (package list and more code)?

jhuenges commented 9 years ago

@lumpyspacecoder ?

lumpyspacecoder commented 9 years ago

Not by cloning. Please see my example here: https://github.com/lumpyspacecoder/DataMaps On Sep 22, 2015 4:20 AM, "jhuenges" notifications@github.com wrote:

@lumpyspacecoder https://github.com/lumpyspacecoder ?

— Reply to this email directly or view it on GitHub https://github.com/jhuenges/highcharts-demo/issues/3#issuecomment-142223579 .

jhuenges commented 9 years ago

Okay, I see that you added maazalik:highcharts to your package. But I cant find any code related to that package. Can you point me to a specific file?

EDIT: If there is a bug somewhere you can create a new branch in your project and I can take a look at it

I found the code ... silly me! I am looking into it

jhuenges commented 9 years ago

Okay, I found the bug: https://github.com/lumpyspacecoder/DataMaps/blob/master/client/main.html#L6-L8 You cant use scripts like this. Line 6 is useless, because you already have the jquery package; The script.js in line 7 doesnt exists and cant be used that way; And regarding line 8 - I am sure there is another way to use google maps (package).

If you need anymore help, please let me know.

lumpyspacecoder commented 9 years ago

Ooh. I totally missed that old code. It works now! Thanks!