Comments (5)
If can add something like footerValueBuilder
will be nice
from bezier-chart.
from bezier-chart.
@diegoveloper
Yep , code like this
SizedBox(
height: 300,
width: double.infinity,
child: Center(
child: BezierChart(
bezierChartScale: BezierChartScale.CUSTOM,
selectedValue: 150,
xAxisCustomValues: List.generate(24, (item) => (item * 5).toDouble());,
footerValueBuilder: (double value) {
return value.toString();
},
series: [
BezierLine(
data: [
DataPoint(value: 0.0, xAxis: 0.0),
DataPoint(value: 0.0, xAxis: 5.0),
DataPoint(value: 0.0, xAxis: 10.0),
DataPoint(value: 0.0, xAxis: 15.0),
DataPoint(value: 0.0, xAxis: 20.0),
DataPoint(value: 0.0, xAxis: 25.0),
DataPoint(value: 0.0, xAxis: 30.0),
DataPoint(value: 0.0, xAxis: 35.0),
DataPoint(value: 0.0, xAxis: 40.0),
DataPoint(value: 0.0, xAxis: 45.0),
DataPoint(value: 2133.594, xAxis: 50.0),
DataPoint(value: 5931.278, xAxis: 55.0),
DataPoint(value: 5919.515, xAxis: 60.0),
DataPoint(value: 5943.382, xAxis: 65.0),
DataPoint(value: 5829.564, xAxis: 70.0),
DataPoint(value: 5946.018, xAxis: 75.0),
DataPoint(value: 5951.822, xAxis: 80.0),
DataPoint(value: 5922.453, xAxis: 85.0),
DataPoint(value: 5870.541, xAxis: 90.0),
DataPoint(value: 5868.718, xAxis: 95.0),
DataPoint(value: 6016.504, xAxis: 100.0),
DataPoint(value: 5944.217, xAxis: 105.0),
DataPoint(value: 6018.12, xAxis: 110.0),
DataPoint(value: 6036.438, xAxis: 115.0),
DataPoint(value: 6019.77, xAxis: 120.0),
DataPoint(value: 5939.617, xAxis: 125.0),
DataPoint(value: 5922.675, xAxis: 130.0),
DataPoint(value: 5976.648, xAxis: 135.0),
DataPoint(value: 6037.526, xAxis: 140.0),
DataPoint(value: 5181.983, xAxis: 145.0),
DataPoint(value: 0.0, xAxis: 150.0),
],
),
],
config: BezierChartConfig(
// startYAxisFromNonZeroValue: false,
footerHeight: 40,
bubbleIndicatorColor:
Colors.white.withOpacity(0.9),
verticalIndicatorStrokeWidth: 3.0,
verticalIndicatorColor: Colors.black26,
showVerticalIndicator: true,
verticalIndicatorFixedPosition: false,
showDataPoints: false,
// stepsYAxis: this.ySteps * 2,
stepsYAxis: 3000, // hide this props will work , but y axis num will overlapping. show this props , the chart will go left too much
displayYAxis: true,
yAxisTextStyle: TextStyle(
fontSize: 12, color: Colors.white),
)
//
),
)
//
)
from bezier-chart.
I fixed that issue, could you try using the dependency in this way:
bezier_chart:
git:
url: git://github.com/aeyrium/bezier-chart.git
ref: master
And run : flutter packages upgrade
Let me knows if it works.
Don't forget to add contentWidth
to the config.
BezierChartConfig(
contentWidth: MediaQuery.of(context).size.width * 4,
from bezier-chart.
@diegoveloper Thanks for great job ! But tooltip
will be cut off .
from bezier-chart.
Related Issues (20)
- HowTo BezierChartScale DAILY HOT 1
- selectedDate position not updating & Chart Width shrinks on MonthlyScale, HOT 3
- Internationalization using locales HOT 3
- can you help me to create line chart?
- updatePositionOnTap do not work HOT 2
- Monthly Chart - 2 datapoints spacing HOT 1
- Scrolling not working on 1.0.17
- Move to NNBD HOT 3
- onMissingValue = last Value posible?
- Please fix intl to ^0.17.0 - conflicting package errors HOT 6
- Looking for maintainers of this package HOT 2
- Missing Null Safety Support! HOT 12
- Y-axis and bubble card is cut off on top HOT 2
- Control chart's horizontal padding
- Click callback for CUSTOM chart
- Click callback for CUSTOM chart HOT 1
- Can i create custom line chart with bezier-chart?
- Graph moves to center of screen HOT 3
- Two or three(a few) points are not selected correctly.
- Graph adds previous points on hot refreshes and setState
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bezier-chart.