Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineChart displays incorrect graph #90

Closed
tdh8316 opened this issue Oct 20, 2019 · 3 comments
Closed

LineChart displays incorrect graph #90

tdh8316 opened this issue Oct 20, 2019 · 3 comments
Labels
question Further information is requested

Comments

@tdh8316
Copy link

tdh8316 commented Oct 20, 2019

The FlSpots are:

[
    FlSpot(1.0, 2.0),
    FlSpot(16.0, 1.0),
    FlSpot(17.0, 1.0),
    FlSpot(18.0, 2.0),
    FlSpot(19.0, 3.0),
]

And the widget appears:

KakaoTalk_20191020_180214754

But I expected this:
제목 없음

This is the full code:

LineChartData(
        gridData: FlGridData(show: false),
        titlesData: FlTitlesData(show: false),
        borderData: FlBorderData(show: false),
        maxY: 4,
        minY: 0,
        maxX: 31,
        lineBarsData: <LineChartBarData>[
          LineChartBarData(
            spots: [
    			FlSpot(1.0, 2.0),
    			FlSpot(16.0, 1.0),
   				FlSpot(17.0, 1.0),
    			FlSpot(18.0, 2.0),
    			FlSpot(19.0, 3.0),
            ],
            isCurved: true,
            colors: <Color>[DefaultColorTheme.main],
            barWidth: 4,
            isStrokeCapRound: true,
            dotData: const FlDotData(
              show: false,
            ),
            belowBarData: BarAreaData(show: false),
          ),
        ],
)
@tdh8316
Copy link
Author

tdh8316 commented Oct 21, 2019

Hi @imaNNeoFighT, This occurs not only these spots, but also other many spots.
Is this related to the isCurved option?

@imaNNeo
Copy link
Owner

imaNNeo commented Oct 21, 2019

Hey buddy,
change the curveSmoothness to 0.1.
If it is worked, close the issue.
Thanks!

@imaNNeo imaNNeo added the question Further information is requested label Oct 21, 2019
@tdh8316
Copy link
Author

tdh8316 commented Oct 22, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants