Flutter Tutorial - Line Chart - FLChart

Flutter Tutorial - Line Chart - FLChart

HeyFlutter․com

3 года назад

52,189 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@KREeDo5
@KREeDo5 - 22.11.2023 23:12

Thanks, you save my evening)))

Ответить
@kulitjeruk5292
@kulitjeruk5292 - 09.08.2023 21:59

hello, is possible to change the left title with image or icon?

Ответить
@arikev8040
@arikev8040 - 28.07.2023 09:11

Nice line shart

Ответить
@SetioDewo
@SetioDewo - 20.07.2023 04:05

Can it displays legend?

Ответить
@adityasinha3851
@adityasinha3851 - 15.03.2023 15:07

I am getting the error that parameter colors is not defined

Ответить
@nasserbaba9722
@nasserbaba9722 - 15.03.2023 14:52

Hi Johannes Mike i am using this chart package in my flutter project i want to adjust the on tap for dotData to keep showing on the chart if the user did tap on the line only the specific dot data tapped and if the user tapped on another dot it will show and hide the previous showed dot data , can you please help me with this problem and thank you ❤

Ответить
@GarthFransman
@GarthFransman - 25.01.2023 17:56

How would I use Firestore Data for my chart info ?

Ответить
@nazagm8392
@nazagm8392 - 06.01.2023 19:12

good tutorial 👏🏼

Ответить
@s-jobs
@s-jobs - 26.11.2022 05:38

this example is not yours, it belongs to flchart team ! u should've mentioned it to show your honesty at least !

Ответить
@jihedbouchnak
@jihedbouchnak - 17.11.2022 12:58

Great video Mike Love your work

Ответить
@kentthomas1045
@kentthomas1045 - 24.10.2022 09:59

can this handle real time data?

Ответить
@emirsehic4728
@emirsehic4728 - 08.09.2022 00:28

This video is great, but it's outdated. Latest dependencies are not compatible with the code. When I run the code with dependencies used in this video, it gives me problems with null safety. It would be nice to have at least source code updated.

Ответить
@alexanderklehm3872
@alexanderklehm3872 - 02.08.2022 10:26

Hey Johannes,
thank you for the tutorial. I just want to let you know, that there had to be some improvement on fl_chart, which doesn't suit one on one with your tutorial anymore. For example the titles arguments in the FlTitlesData widget know takes a AxisTitles widget, which then takes a SideTitles widget. No big deal for an advanced dev, but a beginner maybe couldn't follow along your tutorial anymore. So maybe you want to take a look at the changes and update your video.

Ответить
@rokhladin5205
@rokhladin5205 - 10.07.2022 14:08

If your file line_titles.dart is not working try this code:
import 'package:fl_chart/fl_chart.dart';
import 'package:flutter/material.dart';

class LineTitles {
static getTitleData() => FlTitlesData(
show: true,
bottomTitles: AxisTitles(
axisNameWidget: const Text(
'Meseci',
style: TextStyle(
color: Color(0xff68737d),
fontWeight: FontWeight.bold,
fontSize: 16,
),
),
sideTitles: SideTitles(
showTitles: true,
reservedSize: 30,
getTitlesWidget: (value, meta) {
const style = TextStyle(
color: Color(0xff68737d),
fontWeight: FontWeight.bold,
fontSize: 16,
);
Widget text;
switch (value.toInt()) {
case 2:
text = const Text('MAR', style: style);
break;
case 5:
text = const Text('JUN', style: style);
break;
case 8:
text = const Text('SEP', style: style);
break;
default:
text = const Text('', style: style);
break;
}

return SideTitleWidget(
axisSide: meta.axisSide,
space: 8.0,
child: text,
);
}),
),
leftTitles: AxisTitles(
axisNameWidget: const Text(
'Vrednost',
style: TextStyle(
color: Color(0xff68737d),
fontWeight: FontWeight.bold,
fontSize: 16,
),
),
sideTitles: SideTitles(
showTitles: true,
getTitlesWidget: (double value, TitleMeta meta) {
const style = TextStyle(
color: Color(0xff67727d),
fontWeight: FontWeight.bold,
fontSize: 15,
);
String text;
switch (value.toInt()) {
case 1:
text = '10K';
break;
case 3:
text = '30k';
break;
case 5:
text = '50k';
break;
default:
return Container();
}

return Text(text, style: style, textAlign: TextAlign.left);
},
reservedSize: 40,
interval: 1,
),
),
);
}

Ответить
@hariprasaths5999
@hariprasaths5999 - 03.07.2022 12:07

Can you explain how to zoom charts??

Ответить
@lesptitsoiseaux
@lesptitsoiseaux - 21.06.2022 06:43

I got the 500th like!

Ответить
@lesptitsoiseaux
@lesptitsoiseaux - 21.06.2022 06:35

Can the gradient colors be along the vertical axis instead? It'd make more sense in many use cases...

Ответить
@muhammadharis-lo9nv
@muhammadharis-lo9nv - 14.06.2022 05:37

Hey sir nice tutorial how to make tooltip add certain dot without on tap event in fl chart

Ответить
@aryanpandey2879
@aryanpandey2879 - 20.05.2022 21:17

How can we make a linechart with timestamp as the x-axis parameter. Basically I want to plot data every second as it is being added to firestore database.

Ответить
@MuhittinKaplan
@MuhittinKaplan - 12.03.2022 19:17

Thanks Jhonnes

Ответить
@hiteshaloney
@hiteshaloney - 27.02.2022 19:38

Thank you for this tutorial :)

Ответить
@faqruddinmohammad1411
@faqruddinmohammad1411 - 26.01.2022 00:18

Great job. Could you please make fl line and pie chart data from json url based apis. It would be great help or share any refrenece. Thank you.

Ответить
@TechnophileLad
@TechnophileLad - 19.01.2022 20:52

How can I connect this with google sheets API?

Ответить
@misters6451
@misters6451 - 17.01.2022 18:57

It's amazing! Thank you!

Ответить
@ayoseunsolomon2562
@ayoseunsolomon2562 - 11.01.2022 16:16

if you're having error (TextStyle? cannot be assigned to TextStyle?) when adding ''getTextstyles' , just update dependency to 0.41.0{null safety) and add 'context' with value....... thank you for this video

Ответить
@jonasbiermann
@jonasbiermann - 02.01.2022 19:28

Hi this really helped me. Just one question... can I somehow declare the direction in which the linear gradient under belowBarData is shown? Id like to have it from top to bottom but its from left to right... great video tho

Ответить
@akhanhanif2255
@akhanhanif2255 - 30.12.2021 10:22

i want to show the line below fldot for some points, is it possible? also that line should be visible without taping on it..?

Ответить
@reginaldodejesusoliveirasi4930
@reginaldodejesusoliveirasi4930 - 30.11.2021 02:23

very good

Ответить
@nested9301
@nested9301 - 23.11.2021 03:11

Impressive ♥️♥️ 🌟

Ответить
@mudassarmaqbool8924
@mudassarmaqbool8924 - 11.11.2021 00:05

Really Helpful Video.

Ответить
@NinjaGaming-te6od
@NinjaGaming-te6od - 31.10.2021 00:58

Hey Jonnahes love your content.... Can I possible get the from firebase and put in the Line chart? Any source

Ответить
@vincentvaningen5862
@vincentvaningen5862 - 28.10.2021 16:20

UPDATE 2021: to get getTextStyles working you need to add context. So then it becomes
getTextStyles: (context, value) => const TextStyle(
color: Color(0xff67727d),
fontWeight: FontWeight.bold,
fontSize: 15,),

Ответить
@unitestunitest2695
@unitestunitest2695 - 13.10.2021 10:53

Thank you bro for video. Helps a lot!

Ответить
@oxygen02
@oxygen02 - 09.09.2021 19:30

Hey, it's a great tutorial! But I've got a question, how can I make the chart scrollable on the X-axis? Because I need to show data for the date range a year back, the chart would be too big to display without scrolling. Would be great to know the solution to implement something like this. Thank you.

Ответить
@beautifulanimals209
@beautifulanimals209 - 30.08.2021 19:51

Sir kindly make banking app using flutter.???

Ответить
@ankansharma4897
@ankansharma4897 - 17.08.2021 12:47

how to change the color gradient of area under the graph from left to right to top to bottom

Ответить
@usama_khalid
@usama_khalid - 06.08.2021 21:56

Thank you. it is very helpful

Ответить
@maniyadav3256
@maniyadav3256 - 02.08.2021 20:49

you look different on videos ,than in real

Ответить
@meetamin7343
@meetamin7343 - 08.07.2021 18:21

Whatever I search regarding flutter, you are always there to help me.
You are awesome man❤❤.

Ответить
@fabiosegalli
@fabiosegalli - 08.07.2021 05:17

Thanks for the video, helps a lot!

Ответить
@brokercl
@brokercl - 29.06.2021 19:58

Excellent Johannes, thanks

Ответить
@mariusschroeter
@mariusschroeter - 14.06.2021 14:40

dieser deutsche Akzent xD

Ответить
@edzelagulto5660
@edzelagulto5660 - 03.06.2021 10:08

Wonderful tutorial! I just want to ask if there's a way to dynamically change the labels of the graph? I think they are built to be constants but since this is a graphic tool, it should be able to be changed dynamically. Thank you!

Ответить
@nupohamebapigg
@nupohamebapigg - 20.05.2021 13:14

Sir, how can I fix the Y-Axis to contains only 10 value?

Ответить
@brokercl
@brokercl - 21.04.2021 20:54

great, many thanks Johannes

Ответить
@arupnaskarbkp
@arupnaskarbkp - 05.04.2021 08:26

FlSpot(1,-0.16752809), FlSpot(3, 0.24400593),FlSpot(6, 4.68283943),FlSpot(10, 19.54111649) value add than over follow the scren

Ответить
@HamzaAli-nu7hn
@HamzaAli-nu7hn - 22.03.2021 16:03

values on x and y axis are overlapping when I increase values on x or y axis.
Is there any solution for this?

Ответить
@daawesomeness7747
@daawesomeness7747 - 21.03.2021 13:26

great video but I'm facing a bit of a problem with the chart as some extra lines show up on the chart as if their start and end is connected.

Ответить
@yourpromises
@yourpromises - 09.03.2021 23:58

(G)old

Ответить
@antonioguilherme1844
@antonioguilherme1844 - 20.02.2021 04:37

muito obrigado mesmo.Toppp dmmssss. Sou do Brasil

Ответить