Small javascript project

Closed

I have a website that uses google charts. My typical usage of charts is like this ..

<script type="text/javascript">

[url removed, login to view]("visualization", "1", {packages:["corechart"]});

[url removed, login to view](drawChart);

function drawChart() {

var data = [url removed, login to view]([["Response","Percent"],["Energy",3],["Materials",0],["Industrials",0],["Consumer Discretionary",0],["Consumer Staples",1],["Health",0],["Financials",5],["Government",0],["Information Technology",1],["Telecommunications",2],["Utilities",0],["Education",0],["Other",3]]);

var options = {

legend : "right",

title: "Poll responses",

width: 600,

height:350,

backgroundColor: { fill:"transparent" },

titleFontSize: 12,

tooltip: {trigger: "none" },

titleTextStyle: {color: "#000066"}

};

var chart = new [url removed, login to view]([url removed, login to view]("chart_div1"));

[url removed, login to view](data, options);

}

</script>

<div id="chart_div1"></div>

</div>

I now need to modify the above method so that the code - instead of being static - is injected into the document and then run - something along these lines ..

[url removed, login to view] = <something like the code above>

I've experimented with various solutions proposed on the net but can't get any to work. I've attached a working static version and an example of a not-working dynamic version.

Skills: AJAX, Javascript, jQuery / Prototype

See more: technology solutions code, prototype chart, get prototype, example of a project, energy solutions, consumer energy, small javascript project, jquery chart, javascript function response, jquery instead, government type, jquery dynamic, google charts options, jquery modify, jquery charts, dynamic google chart, government project data, dynamic tooltip, text javascript, PieChart , trigger javascript, 600 lines, google visualization javascript, modify javascript code, website draw script

About the Employer:
( 0 reviews ) Australia

Project ID: #5177328

31 freelancers are bidding on average $420 for this job

tlchung

skilled jquery developer here, have done over 500+ jquery project for my clients, i can do the charts for you, let start now.

$250 USD in 10 days
(55 Reviews)
6.7
kleelof

Hello, The approach you are taking is not going to work because of the way Google Charts is loaded and executed. I think I can help you fix this. Why are you trying to load it in this manner? What result ar More

$250 USD in 3 days
(27 Reviews)
5.9
seekdeveloper

Hi, I have read your post and understood your requirement. I have good experience in handling Wordpress /Magento/Joomla/Drupal/ HTML5/CSS3/PHP/ Yii framework/Javascript/MySQL/ Kindly go through my works to c More

$824 USD in 8 days
(14 Reviews)
5.9
stdhtelkom

Hello, I am very interested and would love to help you. I am javascript expert and really can help you. I am seeing why your implementation is fail. But before talking on that why. I need to know your goal of More

$257 USD in 3 days
(21 Reviews)
5.9
programer218

Hello! I am a javascript developer. I can work your project. Please look my reviews. If you hire me, I will start work right now. Thank you.

$252 USD in 3 days
(12 Reviews)
5.4
MOrigoni

Hi AlexPalfi, I'm a javascript ninja, and can load your charts dynamically, even pulling the data from an ajax call Marcelo

$333 USD in 5 days
(39 Reviews)
5.1
hvtuananh

A proposal has not yet been provided

$277 USD in 3 days
(38 Reviews)
5.0
Peterpay

Alex, i've this issue already sorted for you, 100% guaranteed functional and easy to understand the change, please let me know if you need more info.

$250 USD in 0 days
(14 Reviews)
4.8
techwelfare

hi we could do it perfectly with accuracy, please let us know if you want any clarification. if you want us to share our skill and previous work please initiate the chat..

$736 USD in 14 days
(12 Reviews)
4.8
thcoder

A proposal has not yet been provided

$611 USD in 10 days
(6 Reviews)
4.8
expatdev

Hi, I have a working version of your "doesnt-work.html" page, where the chart code gets injected dynamically. If you assign the project to me, I can deliver the working page immediately. Thanks.

$250 USD in 1 day
(6 Reviews)
4.6
tunnhn

Hello, I have seen your files and I saw the the problem in your code. I have fixed it and 2 files already work so if you are interested, please response. Thank you

$250 USD in 1 day
(24 Reviews)
4.6
NeoNoXtraOrdnry

Dear Sir, please see my reputation to make your decision. Please let me know when we can start. Kind Regards

$736 USD in 7 days
(28 Reviews)
4.5
cloudlancer

Hello Mr Alex, I fixed your doesnt-work.html and it's working properly now. It's a very simple job, I don't think you should spend $100 or more if all you need is to make that script work. Please let me know the f More

$250 USD in 3 days
(4 Reviews)
4.4
eComOS

Hello AlexPalfi, I have gone through your outsourced requirement "Small javascript project" and have analyzed that I have right credentials (AJAX, Javascript, jQuery / Prototype) to execute your esteemed project. More

$539 USD in 6 days
(12 Reviews)
4.2
pixelbypixelsl

Hi - I have 15+ years of design and development experience to help with your project. I've worked with the likes of: lastminute.com, travelocity.com and konami.com. I have good experience with Google charts as well as More

$777 USD in 10 days
(1 Review)
4.2
jayshreeganeshha

hi javascript expert here and i would like to work on your. project.please go through my profile and discuss with me .I hope you would like to hire me. i will complete your work within 8 hours.thanks

$250 USD in 1 day
(15 Reviews)
3.9
defactoinfotech

Dear Sir/Madam, In response to your job posting, kindly accept our proposal for this project. We meet the requirements as stipulated and feel a strong contender for this project. We have prior experience in the t More

$750 USD in 20 days
(1 Review)
3.9
nathanquinn

Hi, I am an expert in javascript and have been writing it for 8 years now. I write all kinds of javascript and jQuery and have worked with plenty of javascript chart libraries. I've built dashboards that dynamically di More

$333 USD in 3 days
(7 Reviews)
3.6
pallavibk

hi I am experienced developer. Do know Why you want to call it on load event ! Can you tell us 'What Exactly you want to do? , So that it will be easy to find Solution. thanks Try This <!DOCTYPE HTML PUBLIC "-/ More

$250 USD in 3 days
(8 Reviews)
3.6