graphic
graphic copied to clipboard
Chart overlay
I have an example which make use of "polygon_custom.dart" example to create a candlestick chart and a heatmap chart. Both plots works well independently. Now I am trying to overlay one over the other. Flutter "Stack" works, but slows down the charts a lot. I was expecting to embed both marks in the same chart but I find it difficult to construct the proper data type to pass to the "data" field of the Chart.
The heatmap data is a 2d list and the candle stick data contains similar values as in the example. Is it possible to feed both data to the "data" field of the Chart and then select it somehow in the variables? Can you please let me know your comments. Any suggestions are welcome.
Combining data turned out to be difficult because of no "null" handling in accessors. Replicating dummy values for non available bins also didn't work. I used a stack solution in flutter with zoom disabled.