Orientação gerada a partir de informações públicas. Apenas para referência.
O Bezier Chart é um widget do Flutter que renderiza gráficos de linhas suaves e interativos usando curvas de Bézier. Oferece alta personalização para cores, animações e pontos de dados, tornando-o ideal para visualizar dados em série temporal ou numéricos com elegância. O gráfico suporta interações por toque como zoom, deslocamento e dicas de ferramentas, aumentando o engajamento do usuário. Projetado para desenvolvedores que buscam uma solução de gráfico visualmente atraente e responsiva, integra-se perfeitamente aos aplicativos Flutter sem exigir dependências externas além do framework principal.
Casos de uso
Monitoramento de dados em tempo real
Visualização de tendências financeiras
Rastreamento de atividade do usuário
Painéis interativos
Apresentação de dados educacionais
Principais recursos
Renderização suave de curva Bezier
Gestos de toque (zoom, pan)
Cores e estilos personalizáveis
Transições de dados animadas
Suporte a dicas de ferramenta ao toque
Grade e eixo configuráveis
Indicado para
Aplicações com grande volume de dados
Painéis com conteúdo dinâmico
Aplicativos móveis que precisam de visuais elegantes
Protótipos que exigem integração rápida de gráficos
Desenvolvedores que valorizam a interatividade
Considerações
Limitado ao tipo de gráfico de linha
Sem suporte embutido para múltiplas séries
O desempenho pode degradar-se com conjuntos de dados muito grandes
Requer manipulação manual de formatação de dados complexos
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
Bezier Chart
A beautiful bezier line chart widget for flutter that is highly interactive and configurable.
Features
Multi bezier lines
Allow numbers and datetimes
Gestures support like touch, pinch/zoom, scrolling
Highly customizable
Instructions
Long press and drag to display the indicator
Tap to dismiss the indicator
When using chart Scale different from Custom, you can change between WEEKLY, MONTHLY, YEARLY using pinch/zoom when the indicator is not visible.
Getting started
You should ensure that you add the dependency in your flutter project.
dependencies:bezier_chart:"^2.0.0"
You should then run flutter packages upgrade or update your packages in IntelliJ.
Example Project
There is a example project in the example folder. Check it out. Otherwise, keep reading to get up and running.
In this table, you can find all attributes provided by BezierChartConfig:
Attribute
Default value
Description
showVerticalIndicator
true
true if you want to display the vertical indicator
verticalIndicatorColor
Colors.black
verticalIndicatorStrokeWidth
2.0
width of the line used for the vertical indicator
verticalIndicatorFixedPosition
false
true if you want to keep the info indicator in a fixed position
verticalLineFullHeight
true if you want to display the vertical line in full height
bubbleIndicatorColor
Colors.white
Color of the bubble indicator, it's white by default
bubbleIndicatorTitleStyle
const TextStyle()
TextStyle for the title displayed inside the bubble indicator
bubbleIndicatorValueStyle
const TextStyle()
TextStyle for the value displayed inside the bubble indicator
bubbleIndicatorValueFormat
null
NumberFormat for the value displayed inside the bubble indicator
bubbleIndicatorLabelStyle
const TextStyle()
TextStyle for the label displayed inside the bubble indicator
backgroundColor
Colors.transparent
Color of the background of the chart
backgroundGradient
Gradient of the background of the chart
displayYAxis
false
true if you want to display the value of the Y axis, [false] by default
stepsYAxis
If [displayYAxis] is true, then you can set a positive value to display the steps of Y axis values. e.g 1: stepsYAxis : 5 , if your maxValue is 100, then the Y values should be: [0,5,10,15 .... 100] e.g 2: stepsYAxis : 10 , if your maxValue is 100, then the Y values should be: [10,20,30,40 .... 100]
startYAxisFromNonZeroValue
true
true if you want to start the values of Y axis from the minimum value of your Y values
yAxisTextStyle
TextStyle of the text of the Y Axis values
xAxisTextStyle
TextStyle of the text of the X Axis values
footerHeight
35.0
Height of the footer
showDataPoints
true
true if you want to display the data points
snap
true
true if you want to snap between each data point
pinchZoom
true
true if you want to enable pinch Zoom for bezierChartScale of date types Pinch and zoom is used to switch beetwen charts of date types
contentWidth
If the contentWidth is upper than the current width then the content will be scrollable (only valid for bezierChartScale = CUSTOM)
displayLinesXAxis
false
true if you want to display a vertical line on each X data point, it only works when there is one BezierLine
xLinesColor
Colors.grey
Color for the vertical line in each X point, only works when displayLinesXAxis is true
displayDataPointWhenNoValue
true
true if you want do display the dot when there is no value specified (The values inside onMissingValue)
physics
const AlwaysScrollableScrollPhysics()
The physics for horizontal ScrollView
updatePositionOnTap
false
true if you want do update bubble info on tap action instead of long press. This option will disable tap to hide bubble action