베지에 차트는 베지에 곡선을 사용하여 부드럽고 상호작용 가능한 선 그래프를 렌더링하는 플러터 위젯입니다. 색상, 애니메이션, 데이터 포인트에 대한 고도의 커스터마이징 기능을 제공하여 시간 시리즈 또는 수치 데이터를 우아하게 시각화하기에 이상적입니다. 확대/축소, 드래그, 툴팁과 같은 터치 인터랙션을 지원하여 사용자 참여도를 높입니다. 시각적으로 매력적이고 반응성이 뛰어난 차트 솔루션을 원하는 개발자를 위해 설계되었으며, 핵심 프레임워크 외에는 외부 종속성 없이 플러터 앱에 원활하게 통합됩니다.
사용 사례
실시간 데이터 모니터링
재무 추세 시각화
사용자 활동 추적
인터랙티브 대시보드
교육 데이터 표시
주요 기능
부드러운 베지어 곡선 렌더링
터치 제스처(줌, 팬)
사용자 정의 가능한 색상 및 스타일
애니메이션 데이터 전환
터치 시 도구 설명 지원
사용자 정의 가능한 그리드 및 축
적합한 대상
데이터 집약형 애플리케이션
동적 콘텐츠를 가진 대시보드
우아한 시각 효과가 필요한 모바일 앱
빠른 차트 통합이 필요한 프로토타입
상호작용을 중시하는 개발자
고려 사항
선형 차트 유형에 한정
다중 시리즈에 대한 내장 지원 없음
매우 큰 데이터 세트에서는 성능이 저하될 수 있습니다
복잡한 데이터 포맷팅을 수동으로 처리해야 합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
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