Questions tagged [fl-chart]

fl-chart is a powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.

FL Chart is a library to draw charts in Flutter.

It's used to create Line Charts, Bar Charts, Pie Charts, Scatter Charts and many more.

Here you can find examples on GitHub.

95 questions
2
votes
1 answer

fl_chart touch response issue in LineChart

I have displayed a Line chart using fl_chart ^0.10.1 (Tested on Flutter ver 52.2.1 & 53.0.1). I am updating the FlSpots from a csv file. I am trying to get the index or Spot object if I touch somewhere in the plot. But I am getting an empty list…
Naimur Rahman
  • 101
  • 1
  • 6
2
votes
0 answers

How can i parse data from json file to fl_chart in flutter?

I am new to flutter and i am trying to use fl_chart as a chart to my application. I am using the following Dummy code snippet which is running successfully but i want to parse data from local json from asset folder and use xvalue & yvalue from json…
Internet
  • 23
  • 3
1
vote
0 answers

How to get y coordinate of line chart fl_chart

I would like to ask how can I display the LineBarSpot on the chart independent of the defined spots. For example, if I have 4 spots, and I want to find out the value of y on any part of the graph, I simply click on the given part of the graph and a…
1
vote
0 answers

how to custom fl_chart flutter

I have a task design, this image in figma. I want to customize fl_chart 0.61.0 the same as this image. I using flutter version 3.3.9. Here is my code, I just did this import 'package:flutter/material.dart'; import '../app_color.dart'; import…
PNT
  • 41
  • 4
1
vote
0 answers

How to make the content inside the BarChart horizontally scrollable?

I am using the fl_chart package for plotting a graph in my application and I want only the content inside the BarChart to scroll horizontally, instead of wrapping it in a Container and SingleChildScrollView which scrolls the whole BarChart. here is…
Syed A.R
  • 159
  • 1
  • 9
1
vote
0 answers

Flutter fl_chart: don't show title text when pie chart doesn't fit in color section

I am using a pie chart from fl_chart. Pie chart data comes from Rest API. What I want is that if an item's value is too small and doesn't fit in the pie chart color section, that value doesn't appear on the pie chart. The issue is visible in the…
Cəmil Oruclu
  • 67
  • 1
  • 6
1
vote
1 answer

Flutter fl_chart - How can we avoid the overlap of the ordinate?

i have a chart and sometimes, the ordonate overlaps the min or/and the max value Can this be avoided? Thx
redDwarf
  • 336
  • 1
  • 9
1
vote
1 answer

Fl Chart Flutter with date data

I want to show fl line chart using this plugin https://pub.dev/packages/fl_chart. data is double value and date in format of yyyy-MM-dd. Now I tried to show this data in chart. Y axis showing data correctly but date calculations are not may be…
1
vote
1 answer

X axis glitch Fl_charts

I have data in the form of [DateTime, num]. I have converted the DateTime object into a string and used it as a x-axis label. I am getting this glitch now. Is there a property which I need to change to fix this? As you can see, there is a repetition…
Aakash Kothari
  • 97
  • 1
  • 1
  • 8
1
vote
0 answers

FlChart to display different time series

I try to use the following code for my application to display the weight of animals in a chart. My goal is a variable time controlled via buttons (e.g. 1 month, 6 months, 1 year,...). LineChart( LineChartData( …
Timitrov
  • 211
  • 1
  • 3
  • 14
1
vote
0 answers

Flutter Sparkline Chart double X and Y Axis Bug

im quite new to flutter and having some problems, i could not find in the fl chart documentation anyone know why my Line Chart shows double X and Y Axis? And how to remove the double axes? Also the X and Y Axis Values are chaing dynamicly, how can i…
1
vote
1 answer

Strange straight line in flutter fl_chart

I have a line chart that builds by a combination of several data. But the curve draws some strange straight lines on some areas. How can i delete this line? The problem is i think not related to the data because icannot touch with cursor to this…
nextlevel
  • 35
  • 1
  • 6
1
vote
2 answers

How to update a chart in Flutter (fl_chart)

I want to update the data of my chart, but it doesn't work. I used the chart I saw on a YouTube Video, which is using the fl_chart package. This is the whole code of the Youtube Video: https://github.com/JohannesMilke/fl_bar_chart_example. I think I…
SOS video
  • 436
  • 9
  • 21
1
vote
0 answers

flutter charts: Resize charts when resize the browser screen

I'm a new flutter developer and I am using fl_chart to make some dashboards. My charts are well displayed with the web window on full screen (screen 2) , and once I try to resize my window, at a certain time, pie charts become bigger than the parent…
1
vote
2 answers

FL Chart vertical dotted lines independent from dots

I am using FLChart in my app to display some charts. That is working just fine. However I would like to be able to draw some vertical dotted lines into my graph like this: As you can see, some of them should also have Numbers on top of them. Ive…
Chris
  • 1,828
  • 6
  • 40
  • 108