Comments (5)
Hi. Yes, zooming on the chart using mouse scroll is intended. Do you have any problem with this?
Could you please provide some code snippets so I can help you with that?
from candlesticks.
well it is just using the example of yours and it is the same result in the live demo. zooming works but it is reversed behavior to everything else zooming related mouse wheal up should zoom in etc :) and I cant seam to figure out a way to make the chart render on new data I mean new dataset like a a new stock etc
from candlesticks.
Try changing the key when you want to reset the chart. The unique key doesn't work because it passes the same key on every build. try building your key from your data. like: key: Key(SYMBOL + TIMEFRAME)
so your chart resets every time TIMEFRAME or SYMBOL changes.
from candlesticks.
Yes that is what I have tried
I am using Getx and I have made sure that the key is valid
uic is unique int id
class CandleChart extends GetView<MyController> {
final List<Indicator> indicators = [
BollingerBandsIndicator(
length: 20,
stdDev: 2,
upperColor: const Color(0xFF2962FF),
basisColor: const Color(0xFFFF6D00),
lowerColor: const Color(0xFF2962FF),
),
WeightedMovingAverageIndicator(
length: 100,
color: Colors.green.shade600,
),
];
@override
Widget build(BuildContext context) {
return Obx(() =>
Expanded(
child: Row(
children: [
Text(controller.chart.value.uic.toString()),
Candlesticks(
key:Key(controller.chart.value.uic.toString()),
candles: controller.getCandles4Chart(),
indicators: indicators,
),
],
),
),
);
}
}
and in my controller
List<candlesticks.Candle> getCandles4Chart() {
return chart.value.daily.candles
.map((c) => candlesticks.Candle(
date: DateTime.fromMillisecondsSinceEpoch(
(c.time.seconds * 1000).toInt()),
high: c.high,
low: c.low,
open: c.open,
close: c.close,
volume: c.volume))
.toList()
.reversed
.toList()
;
}
this just results in the progress circle
from candlesticks.
Are you sure that the candles List is not empty?
from candlesticks.
Related Issues (20)
- Unsupported operation: Infinity or NaN toInt HOT 4
- Indicators HOT 1
- More control on the chart from the outside!
- RangeError exception on Smaller Candles Sizes HOT 2
- [Feature] Ability to pass custom indictor data
- Draw HOT 1
- Indicator cannot be imported HOT 3
- Is there a way to scroll programmatically to a certain timestamp? HOT 4
- Issue on price pointer indicator for mobile HOT 3
- The text color of Auto button is not visible HOT 3
- Draw arrows and horizontal lines in the chart HOT 1
- Draw line HOT 1
- Hide default Volume bar?
- Dynamic Indicator Color By Value
- Intervals choose HOT 3
- Ability to add annotations to candle sticks HOT 1
- Light theme in new flutter HOT 4
- How to show the animated chart for streams of data HOT 1
- How do we style the candlesticks? HOT 1
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 candlesticks.