Giter Site home page Giter Site logo

Comments (5)

vsevjednom-cz avatar vsevjednom-cz commented on June 27, 2024

I tried many many changes of my code. For example: events: ["mousemove", "mouseout", "click", "touchstart", "touchmove", "touchend"] - but hiding is still there when I remove mousemove and mouseout.

from chart.js.

vsevjednom-cz avatar vsevjednom-cz commented on June 27, 2024

Uaaa, options -> events: [], stops hiddening things but I don't see where is my mouse - ctx.moveTo and ctx.lineTo doesn't work.

from chart.js.

vsevjednom-cz avatar vsevjednom-cz commented on June 27, 2024

When I delete this, hidding is gone but I can't see where is my mouse:

     afterEvent: (chart, evt) => {
      const {
        chartArea: {
          top,
          bottom,
          left,
          right
        }
      } = chart;
      const {
        x, y
      } = evt;
      if (x < left || x > right || y < top || y > bottom) {
        chart.corsair = {
          x, y,
          draw: true
        };
        chart.draw();
        return;
      };
      chart.corsair = {
        x,y,
        draw: true
      };

      chart.draw();
    },

from chart.js.

vsevjednom-cz avatar vsevjednom-cz commented on June 27, 2024

Wow, "error" was here: chart.draw();. Hidding is gone! But there is new little "error": I can see where was my mouse soon (point) when I move with my mouse too fast.

from chart.js.

LeeLenaleee avatar LeeLenaleee commented on June 27, 2024

Chart.js version 2 is not supported anymore, you are using custom code and don't have a reproducible sample.

If you still have this issue with version 4 and a reproducible sample you can re open this. Otherwise you will need to ask your question on stack overflow

from chart.js.

Related Issues (20)

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.