Comments (6)
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.
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.
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.
Keep rocking! Hope to send my first PR soon :D
from fl_chart.
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.
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)
- How can I draw a horizntol line from the last dot in LineChart? HOT 1
- PieChart: touched section index is incorrect if some values are zero HOT 1
- ScatterChart: Show label for a spot HOT 1
- sidetitle overloading each others
- 2 ToolTip top & bottom
- Best way to synchronize and show tool tips of an X value across multiple charts HOT 1
- [Feature Request] RadarChartTitle
- How to deal with small section in pie chart?
- Memory leaks after adding `touchCallback` and `checkToShowDot` HOT 4
- preventCurveOverShooting sounds like mitigation rather than solution HOT 1
- Strange rounding when the x values are 0 HOT 10
- it's posible to do scrollbar on line chart like attachment?
- BottomTitles for each bar in BarChart
- [Live graph] Errors such as noise in the live graph HOT 1
- PieTouchData not working on some sections
- Overlapping labels, label alignment - add workaround to documentation
- ScatterChart doesn't support rangeAnnotation.
- Bug: Linux Example App build fails HOT 1
- Add Segment Selection to LineChart
- how to draw step line? Lack of Support for StepLine Drawing and User Confusion in fl_chart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fl_chart.