Comments (10)
Hey, you need to set the the property for preventing overshooting:
LineChartBarData(
...
isCurved: true,
curveSmoothness: 0.4,
preventCurveOverShooting: true, <--
...
),
from fl_chart.
The answer here is obvious: Don't use curves.
from fl_chart.
okay, thank you for clarifying @TobiasRump
from fl_chart.
@TobiasRump Thanks
but faced other problem after adding preventCurveOverShooting
, not all corners are curved
from fl_chart.
@guvanch07 pls check the docs
you have three properties to manipulate the curve behavior:
PropName | Description | default value |
---|---|---|
isCurved | curves the corners of the line on the spot's positions | false |
curveSmoothness | smoothness radius of the curve corners (works when isCurved is true) | 0.35 |
preventCurveOverShooting | prevent overshooting when draw curve line on linear sequence spots, check this #25 | false |
preventCurveOvershootingThreshold | threshold for applying prevent overshooting algorithm | 10.0 |
from fl_chart.
So, I'm facing the same issue and I am NOT using curved lines, and all junctions are weird:
from fl_chart.
I just cloned the sample app and ran it without any modifications, and the result is the same, the corners are not matching.
Flutter: 3.19.6
I tested on both iOS Simulator and Android emulator. The print above is on an iPhone 11 physical device, and the print below is from an iOS Simulator.
from fl_chart.
By the looks of it, it appears to be a calculation error when painting the corners of the lines onto the right coordinates, which are the coordinates that match the connection between the end of said line and the start of the next one.
from fl_chart.
@edgarfroes
I also encountered the same problem.
You can lower the version of flutter and the problem will be solved.
My flutter version is 3.16.5
##1625
from fl_chart.
@edgarfroes @artsooter disable Impeller and it will be fixed. You might also try to play around with the latest Flutter master branch, as this PR flutter/engine#52978 might have fixed it.
from fl_chart.
Related Issues (20)
- 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 4
- 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
- Landscape style Allowed Configures whether to allow
- Issue with Aligning BarChart and LineChart on Same X-Axis in fl_chart
- PieTouchData.enabled doesn't work
- VerticalLineLabel position has changed when migrating to new versions
- dublicated x-axis titles HOT 1
- maxY value title color is not apply true with opacity color. HOT 2
- LineChart visual error HOT 1
- Rounded corner radius for PieChart
- RangeError (length): Invalid value: Not in inclusive range 0..3: 4. Error thrown HOT 1
- How can I display both bar charts and line charts in the same chart? HOT 1
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.