@@ -165,11 +165,11 @@ export default {
165165 },
166166 tooltip: {
167167 custom ({ seriesIndex, dataPointIndex, w }) {
168- const max = formatDuration (w .globals .seriesCandleC [seriesIndex][dataPointIndex], true )
169- const q3 = formatDuration (w .globals .seriesCandleL [seriesIndex][dataPointIndex], true )
170- const med = formatDuration (w .globals .seriesCandleM [seriesIndex][dataPointIndex], true )
171- const q1 = formatDuration (w .globals .seriesCandleH [seriesIndex][dataPointIndex], true )
172- const min = formatDuration (w .globals .seriesCandleO [seriesIndex][dataPointIndex], true )
168+ const max = formatDuration (w .globals .seriesCandleC [seriesIndex][dataPointIndex], { allowZeros : true } )
169+ const q3 = formatDuration (w .globals .seriesCandleL [seriesIndex][dataPointIndex], { allowZeros : true } )
170+ const med = formatDuration (w .globals .seriesCandleM [seriesIndex][dataPointIndex], { allowZeros : true } )
171+ const q1 = formatDuration (w .globals .seriesCandleH [seriesIndex][dataPointIndex], { allowZeros : true } )
172+ const min = formatDuration (w .globals .seriesCandleO [seriesIndex][dataPointIndex], { allowZeros : true } )
173173 return `
174174 <div class="pa-2">
175175 <div>Maximum: ${ max} </div>
@@ -197,7 +197,7 @@ export default {
197197 text: ` ${ upperFirst (props .timingOption )} time` ,
198198 },
199199 labels: {
200- formatter : (value ) => formatDuration (value, true )
200+ formatter : (value ) => formatDuration (value, { allowZeros : true } )
201201 },
202202 },
203203 }))
0 commit comments