Giter VIP home page Giter VIP logo

Comments (4)

jumjum123 avatar jumjum123 commented on September 2, 2024

Hello Ivan,
could you please create an example in jsfiddle ?

regards
Jürgen

On Fri, Sep 19, 2014 at 2:04 PM, Ivan Tsybulin [email protected]
wrote:

Hello.

Please take a look at the following jsfiddle where a fixed dataset (drawn
with lines) is covered by the same dataset (drawn with points, editable).
There's no way to move points with mouse. Works well when datasets are
reversed.
http://jsfiddle.net/jumjum/jUrG7/

I suppose it is due to early exit when looking up for point under mouse.


Reply to this email directly or view it on GitHub
#5.

from jumflot.

uranix avatar uranix commented on September 2, 2024

Sorry, here's the right example
http://jsfiddle.net/sdrj2bsw/

from jumflot.

uranix avatar uranix commented on September 2, 2024

As a workaround one can override findItem method of series.nearBy option

series: { nearBy: {
  findItem: function (mouseX,mouseY,i,serie) {
    if (!serie.editable) return null;
    return findNearbyItemDefault(mouseX, mouseY, i, serie);
  }
} }

The updated fidlle is here: http://jsfiddle.net/sdrj2bsw/1/

from jumflot.

jumjum123 avatar jumjum123 commented on September 2, 2024

Great, you found a solution.

Right now I'm working on another project (small ARM computer with SPI,I2C,
GPIO, ADC, DAC etc. with a kind of Javascript for processes,
www.espruino.com)
Therefore my time for flot is limited.

regards
Jürgen

On Fri, Sep 19, 2014 at 3:19 PM, Ivan Tsybulin [email protected]
wrote:

As a workaround one can override findItem method of series.nearBy option

series: { nearBy: {
findItem: function (mouseX,mouseY,i,serie) {
if (!serie.editable) return null;
return findNearbyItemDefault(mouseX, mouseY, i, serie);
}
} }

The updated fidlle is here: http://jsfiddle.net/sdrj2bsw/1/


Reply to this email directly or view it on GitHub
#5 (comment).

from jumflot.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.