Closed workingbuddy10 closed 2 months ago
I have tried this before, you can refer to it
heatmapSeries = mainPanel.series.push(
am5xy.ColumnSeries.new(root, {
name: 'Series',
xAxis: dateAxis,
yAxis: valueAxis,
valueYField: 'price',
valueXField: 'date',
customValueField: 'amount',
openValueYField: 'openPrice',
stroke: am5.color('#000000')
})
)
heatmapSeries.columns.template.setAll({
width: am5.percent(100),
templateField: 'strokeSettings'
})
The data will look like this
[{
date: candle.Date,
price: candle.Price,
openPrice: candle.Price - 10,
amount: amount,
strokeSettings: {
fill: am5.color(0xff0000)
}
}]
Regarding label in the cell, reference: https://www.amcharts.com/demos/stacked-bar-chart/
However, when using this method, the chart was very laggy, so I used another way. See this issue below https://github.com/amcharts/amcharts5/issues/1591
Thanks @shishima123 , for the help! I am trying to attach the heatmap with the individual candles! So if I scroll/zoom it should sync with it.
yes, if you set xAxis, yAxis to coincide with the candle axis, it will be in sync with each other
Please It would be great if can help me with any working example!! @shishima123
This is one of your fiddle : https://jsfiddle.net/shishima/h940nf37/4/
I updated my fiddle, you can check it https://jsfiddle.net/shishima/3c9fwvud/4/
thanks @shishima123 💯
By the way @shishima123 , the codepen helped a lot. But I was looking for something like this : #1704 issue images. Like a heatmap cell placed one above at price vs timestamp. Hope you got my point
so you know you know workaround related to this? @shishima123
@martynasma If you can help? To get the heatmap like cells stacked one above in the given fiddle !!
This question was reviewed by amCharts staff and was determined neither a) bug nor b) simple question that can be answered without doing custom development or reviewing user code.
I'm sorry, but we won't be able to answer your question here.
If you have an amCharts support subscription, we suggest contacting our helpdesk. If you don't, you might consider acquiring one. For more details on procuring support please refer to this page.
@workingbuddy10 so sorry, I'm afraid I can't help you. Your problem is not the same as mine
I am trying to plot some data on the heatmap, but even after trying multiple it is not working. I want to plot this data :
It will be Time vs Price heatmap. It will be like at 1693812000000 time, & at 226.25 price. I want to show the label of the cell as "1x0x1". And lastly we can use the delta for the max & min color grading.
I don't need any legend too!
https://www.amcharts.com/demos/heat-map-with-legend/