answersLogoWhite

0

dataBase[0].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[0].columnline]); });

dataBase[1].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[1].columnline]); });

dataBase[2].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[2].columnline]); });

dataBase[3].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[3].columnline]); });

dataBase[4].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[4].columnline]); });

dataBase[5].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[5].columnline]); });

dataBase[6].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[6].columnline]); });

dataBase[7].valueline = d3.svg.line()

.x(function(d) { return x(d["Date"]); })

.y(function(d) { return y(d[dataBase[7].columnline]); });

I am trying to make a javascript loop that would do the same, but whenever I replace the counter with the numbers, it doesn't work.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What does a while loop do in javascript?

a while-loop in javascript executes a section of code while a condition is true. Eg. function () { var i = 0; while (i < 326) { alert(i++) } } In the above example, the an alert is given, showing the value of i so for as long as i is less than 326. In each loop, i is increased by 1.


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


Why does java script support more than one type of loop?

Think of a Javascript loop as a loop in a rollercoaster, which, as you know, makes you go back to the place you started the loop, and then continue. Javascript allows you to create sections of code that make the program handler to go back to the point specified, so instead of copying out a functions directions twice, you can tell the program to reference that section of code for the instructions, and then jump back to where it was.


Is jQuery a high level language?

jQuery is like an advanced JavaScript code. jQuery is a JavaScript code library that gives you more features with less code that what Javascript would require. If you understand JavaScript, jQuery wouldn't be much of a change.


How can you script your ASP code in JavaScript?

Start the document with: <%@ language="javascript" %>


What are control structures used in javascript?

The control structures used in java script are if-statement, for-loop, for-in loop, while loop,do-while loop, switch-statement, with-statement. try-catch-finally statements.


How do you add a click event to a java button?

we can do this using of javascript. you can use this following code: <input type=button value="button" onClick=onclick_function()> here onclick_function() is a function which is called by javascript on clicking the button. javascript code is as follows: <script language="javascript" type="text/javascript"> // your code for onclick_function() function onclick_function(){ alert("Welcome to javascript"); } </script>


What is the javascript code for gaiaonline?

javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0


How do you get the popup javascript box?

Use confirm or alert in javascript code to get a popup


What is the code for JavaScript?

JavaScript code looks like this:function sayhi(name) {alert("Hey there, "+name);}sayhi("joe");


Why is your javascript not working?

If there is no actual error in the code itself, most likely javascript is disabled in the browser.


How do you save javascript on Roblox?

It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.