Jump to content



Photo

Flot Graphing (selectable points)

flot graphing javascript

  • Please log in to reply
1 reply to this topic

#1 Emn1ty

Emn1ty

    Web Programmer

  • Joined: 09-April 06
  • Location: Irvine, CA
  • OS: Windows 8.1, OSX Mavericks
  • Phone: Driod Razr

Posted 07 November 2011 - 18:53

I hate to keep bombarding this forum with questions but I've spent the last few days on this graph and today is the deadline for it to be done. I need all the help I can get asap.

The idea is I need to get this particular page to allow for me to hover over a point on the chart and have a div appear adjacent to it with additional information about that point. In this particular graph I am plotting price against mileage for vehicles so what i need is information about the individual cars to appear in a div when hovered over or selected.

The plugin is here:
http://code.google.com/p/flot/

The example I am working with is here:
http://people.iola.d...nteracting.html

My source code is here:
http://pastebin.com/K2hnPzW2

I don't need the info to appear on top of the chart. I just need to know how to get it so that the correct information will be displayed. I currently have no idea how to even get it to detect the points. I'm new to javascript and have essentially forced myself to learn it over the past 3-4 days so any help would be VERY appreciated.


#2 OP Emn1ty

Emn1ty

    Web Programmer

  • Joined: 09-April 06
  • Location: Irvine, CA
  • OS: Windows 8.1, OSX Mavericks
  • Phone: Driod Razr

Posted 07 November 2011 - 21:17

Solved thanks to an irc chatroom.