Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building a graph from ordered pairs

I have some code which generates an array; at each index there is an array with an x and y coordinate. I wanted to plot the points as a graph using d3.js, but am not sure how to go about that.

I have looked at the site and the examples but have found nothing that would help me with this task. This link here is an example of the type of graph I am trying to create, except I want to be able to create multiple graphs on one grid.

I basically need some guidance on how to get started, because I am completely lost. Any help would be appreciated.

like image 292
user1410270 Avatar asked Oct 15 '25 14:10

user1410270


1 Answers

This might better be a comment but I don't have comment access. First of all what is the name of the type of graph you link to in your question? It's not your basic pie or bar graph.

If you want multiple sets of data on one graph, what type of graph do you want? I can't visualize what you are trying to do so I don't know how best to help. Here is a good list of tutorials that link out to examples of how to use D3.