Giter VIP home page Giter VIP logo

Comments (6)

imaNNeo avatar imaNNeo commented on September 28, 2024 3

Hi,
Well done about the trick, It is intentionally allowed to return null to prevent show the tooltip (maybe you want to disable it in first and last spot, you can retuen them null),
And about the normal touch, you're right currently we support only long touch, I will add normal touch to the chart ASAP

from fl_chart.

davidmarinangeli avatar davidmarinangeli commented on September 28, 2024 2

Solved with

lineTouchData: LineTouchData( touchResponseSink: controller.sink, touchTooltipData: TouchTooltipData( tooltipBgColor: Colors.blueGrey, getTooltipItems: (touchedSpots) { return touchedSpots.map((touchedSpot) { return null; }).toList(); })),

returning null at getTooltipItems did the trick 👍

from fl_chart.

davidmarinangeli avatar davidmarinangeli commented on September 28, 2024 1

Hi,

Another related question: how can I let the chart listen to normalPress and not only longPress? Each time I try to interact with the chart I have to "longpress" it
@davidmarinangeli did you find solution for this?

As Iman told us the normal touch is a feature that will come eventually later. If you want to make an issue I will be really happy to thumb it up.

from fl_chart.

davidmarinangeli avatar davidmarinangeli commented on September 28, 2024

Keep rocking! Hope to send my first PR soon :D

from fl_chart.

sukhcha-in avatar sukhcha-in commented on September 28, 2024

Another related question: how can I let the chart listen to normalPress and not only longPress? Each time I try to interact with the chart I have to "longpress" it
@davidmarinangeli did you find solution for this?

from fl_chart.

imaNNeo avatar imaNNeo commented on September 28, 2024

Guys, currently you can't implement normal touch events in the chart,
If it is important to you, please make an issue, then thumb it up, I will add it with high priority.

from fl_chart.

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.