सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
बीज़ियर चार्ट एक फ्लटर विजेट है जो बीज़ियर कर्व्स का उपयोग करके चिकने, इंटरैक्टिव लाइन चार्ट दर्शाता है। यह रंगों, एनीमेशन और डेटा बिंदुओं के लिए उच्च स्तर की कस्टमाइजेशन प्रदान करता है, जिससे यह समय-श्रृंखला या संख्यात्मक डेटा को सुंदरता के साथ दर्शाने के लिए आदर्श है। चार्ट में ज़ूमिंग, पैनिंग और टूलटिप्स जैसी टच इंटरैक्शन समर्थित हैं, जो उपयोगकर्ता एंगेजमेंट को बढ़ाते हैं। विज़ुअली आकर्षक और प्रतिक्रियाशील चार्ट समाधान की तलाश करने वाले डेवलपर्स के लिए डिज़ाइन किया गया, यह फ्लटर ऐप्स में बिना कोई बाहरी निर्भरता के बिना बिल्कुल भी अनुकूलित हो सकता है।
उपयोग
रियल-टाइम डेटा मॉनिटरिंग
वित्तीय प्रवृत्ति दृश्यकरण
उपयोगकर्ता गतिविधि ट्रैकिंग
इंटरैक्टिव डैशबोर्ड
शैक्षिक डेटा प्रस्तुतीकरण
मुख्य विशेषताएँ
स्मूथ बीज़ियर कर्व रेंडरिंग
टच गेस्चर (ज़ूम, पैन)
कस्टमाइज़ की गई रंग और शैलियाँ
एनीमेटेड डेटा संक्रमण
टैप पर टूलटिप समर्थन
कॉन्फ़िगरेबल ग्रिड और एक्सिस
इनके लिए उपयुक्त
डेटा-भारी एप्लिकेशन
गतिशील सामग्री वाले डैशबोर्ड
एल्गेंट विजुअल्स की आवश्यकता वाले मोबाइल ऐप्स
त्वरित चार्ट एम्बेडिंग की आवश्यकता वाले प्रोटोटाइप
इंटरैक्टिविटी के महत्व को समझने वाले डेवलपर्स
विचार योग्य बातें
रेखा चार्ट प्रकार तक सीमित
बहुत्रेडीयों के लिए निर्मित समर्थन नहीं है
बहुत बड़े डेटासेट के साथ प्रदर्शन में कमी आ सकती है
जटिल डेटा प्रारूपण के हस्तचलित संभालने की आवश्यकता होती है
मूल 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