Closed ninjamonz closed 4 years ago
The candlestick tooltip is customizable with the tooltip.custom
function.
Here is the example
tooltip: {
custom: function({ seriesIndex, dataPointIndex, w }) {
const o = w.globals.seriesCandleO[seriesIndex][dataPointIndex]
const h = w.globals.seriesCandleH[seriesIndex][dataPointIndex]
const l = w.globals.seriesCandleL[seriesIndex][dataPointIndex]
const c = w.globals.seriesCandleC[seriesIndex][dataPointIndex]
return (
'<div class="apexcharts-tooltip-candlestick">' +
'<div>Open: <span class="value">' +
o +
'</span></div>' +
'<div>High: <span class="value">' +
h +
'</span></div>' +
'<div>Low: <span class="value">' +
l +
'</span></div>' +
'<div>Close: <span class="value">' +
c +
'</span></div>' +
'</div>'
)
}
}
Hey Juned, i couldnt manage it what is the up to date solution ? Thank you..
@tolgaatrgt What have you tried?
Sorry, my fault thanks !
thanks for sharing, it helped
Codepen
https://codepen.io/esdegan/pen/mddEqJj
Explanation
Tooltip property can be used for customizing charts with types such as 'line' and 'area', and possibly others, but it appears not to work for 'candlestick' charts.
I don't know what happen, any clue or help? Thanks Q(^_^)Q