Flot Data Labels -
I am trying to create a line chart using float, but I would like the data to appear on the label chart - Meaning, I want the price of each point to appear next to that point I think this should be an option, but it can not be found in the API. Am I missing something, or does anyone know an alternate solution?
Thanks in advance. Here's how I had added the feature with a pleasant animation effect:
Pre> var p = $ .plot (...); $ .each (p.getData () [0] .data, function (i, el) {var o = p.pointoffset ({x: el [0], y: el [1]}); $ (' Lt; Div class = "data-point-label" & gt; '+ el [1] +' & lt; / div & gt; '). CSS ({status:' full ', left: o Left + 4 , Top: o top-43, display: 'none'}) .appende (pg. Placeholder ()). Feedin ('slow');});
You can move the status and display CSS in a stylesheet.
Comments
Post a Comment