File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,20 @@ new Sparkline(
171
171
172
172
---
173
173
174
+ ### Smoothing
175
+
176
+ ``` dart
177
+ new Sparkline(
178
+ data: data,
179
+ useCubicSmoothing: true,
180
+ cubicSmoothingFactor: 0.2,
181
+ ),
182
+ ```
183
+
184
+ ![ cubic smoothing example screenshot] ( screenshots/example_cubic_smoothing.png )
185
+
186
+ ---
187
+
174
188
### Todo:
175
189
176
190
- [x] simple sparkline
@@ -186,7 +200,7 @@ new Sparkline(
186
200
- [ ] baseline
187
201
- [x] different fill modes [ above/below/none]
188
202
- [x] fix edge points overflowing by offsetting by lineWidth
189
- - [ ] better corner rounding
203
+ - [x ] better corner rounding
190
204
- [ ] axis labels
191
205
- [x] gradient shader on line paint
192
206
- [x] gradient shader on fill paint
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ void main() {
25
25
child: new Sparkline (
26
26
data: data,
27
27
useCubicSmoothing: true ,
28
+ cubicSmoothingFactor: 0.2 ,
28
29
),
29
30
),
30
31
),
You can’t perform that action at this time.
0 commit comments