title: How to compare Arrays of two Graphs for the Shape or Pattern?
body: <p>How do I compare two graphs for the similarity with each other. Basically I would like to compare the pattern of two graphs and come up with a percentage of how close the two graphs are. I am trying to do this in Javascript where I have got two data arrays based on which graphs are drawn. Can somebody please guide me to any algorithm or Javascript code snippet to do that?</p>