Skip to content

Commit 835403e

Browse files
committed
Fix - VueUiCandlestick - Fix typo hindering img & pdf generation
1 parent 4fdae71 commit 835403e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/vue-ui-candlestick.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const dataTable = computed(() => {
619619
});
620620
621621
return [
622-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${FINAL_CONFIG.value.style.layout.candle.borderRadius * 3}" fill="${FINAL_CONFIG.value.style.layout.candle.gradient.show ? ds.isBullish ? `url(#bullish_gradient_${uid.value}` : `url(#bearish_gradient_${uid.value})` : ds.isBullish ? FINAL_CONFIG.value.style.layout.candle.colors.bullish : FINAL_CONFIG.value.style.layout.candle.colors.bearish}"/></svg> ${timeLabel}`,
622+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${FINAL_CONFIG.value.style.layout.candle.borderRadius * 3}" fill="${FINAL_CONFIG.value.style.layout.candle.gradient.show ? ds.isBullish ? `url(#bullish_gradient_${uid.value}` : `url(#bearish_gradient_${uid.value})` : ds.isBullish ? FINAL_CONFIG.value.style.layout.candle.colors.bullish : FINAL_CONFIG.value.style.layout.candle.colors.bearish}"/></svg> ${timeLabel}`,
623623
label_open,
624624
label_high,
625625
label_low,
@@ -677,7 +677,7 @@ async function getImage({ scale = 2} = {}) {
677677
if (!candlestickChart.value) return;
678678
const { width, height } = candlestickChart.value.getBoundingClientRect();
679679
const aspectRatio = width / height;
680-
const { imageUri, base64 } = await img(({ domElement: candlestickChart.value, base64: true, img: true, scale}))
680+
const { imageUri, base64 } = await img({ domElement: candlestickChart.value, base64: true, img: true, scale})
681681
return {
682682
imageUri,
683683
base64,
@@ -803,6 +803,7 @@ defineExpose({
803803
ref="svgRef"
804804
:xmlns="XMLNS"
805805
v-if="isDataset"
806+
:aria-label="FINAL_CONFIG.style.title.text || 'candlestick chart'"
806807
:class="{ 'vue-data-ui-fullscreen--on': isFullscreen, 'vue-data-ui-fulscreen--off': !isFullscreen }"
807808
:viewBox="`0 0 ${svg.width <= 0 ? 10 : svg.width} ${svg.height <= 0 ? 10 : svg.height}`" :style="`max-width:100%;overflow:visible;background:transparent;color:${FINAL_CONFIG.style.color}`"
808809
>

0 commit comments

Comments
 (0)