Skip to content

Commit a42c629

Browse files
committed
Dev environment - VueUiTreemap updated arena
1 parent 80a8a50 commit a42c629

File tree

1 file changed

+90
-2
lines changed

1 file changed

+90
-2
lines changed

TestingArena/ArenaVueUiTreemap.vue

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,21 +222,109 @@ function selectDatapoint(d) {
222222

223223
<template #local>
224224
<LocalVueUiTreemap :dataset="dataset" :config="config" :key="`local_${step}`" @selectDatapoint="selectDatapoint" @selectLegend="selectLegend">
225+
<template #svg="{ svg }">
226+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
227+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
228+
</template>
229+
<template #rect="{ rect, shouldShow, fontSize, isZoom, textColor }">
230+
#RECT
231+
<div style="font-size: 12px">
232+
{{ rect, shouldShow, fontSize, isZoom, textColor }}
233+
</div>
234+
</template>
235+
<template #legend="{ legend }">
236+
#LEGEND
237+
<div style="font-size: 8px">
238+
{{ legend }}
239+
</div>
240+
</template>
241+
<template #tooltip-before="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
242+
#BEFORE {{ series.name }}
243+
</template>
244+
<template #tooltip-after="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
245+
#AFTER {{ series.name }}
246+
</template>
225247
</LocalVueUiTreemap>
226248
</template>
227-
249+
228250
<template #VDUI-local>
229251
<LocalVueDataUi component="VueUiTreemap" :dataset="dataset" :config="config" :key="`VDUI-lodal_${step}`" @selectDatapoint="selectDatapoint" @selectLegend="selectLegend">
252+
<template #svg="{ svg }">
253+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
254+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
255+
</template>
256+
<template #rect="{ rect, shouldShow, fontSize, isZoom, textColor }">
257+
#RECT
258+
<div style="font-size: 12px">
259+
{{ rect, shouldShow, fontSize, isZoom, textColor }}
260+
</div>
261+
</template>
262+
<template #legend="{ legend }">
263+
#LEGEND
264+
<div style="font-size: 8px">
265+
{{ legend }}
266+
</div>
267+
</template>
268+
<template #tooltip-before="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
269+
#BEFORE {{ series.name }}
270+
</template>
271+
<template #tooltip-after="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
272+
#AFTER {{ series.name }}
273+
</template>
230274
</LocalVueDataUi>
231275
</template>
232276

233277
<template #build>
234278
<VueUiTreemap :dataset="dataset" :config="config" :key="`build_${step}`" @selectDatapoint="selectDatapoint" @selectLegend="selectLegend">
279+
<template #svg="{ svg }">
280+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
281+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
282+
</template>
283+
<template #rect="{ rect, shouldShow, fontSize, isZoom, textColor }">
284+
#RECT
285+
<div style="font-size: 12px">
286+
{{ rect, shouldShow, fontSize, isZoom, textColor }}
287+
</div>
288+
</template>
289+
<template #legend="{ legend }">
290+
#LEGEND
291+
<div style="font-size: 8px">
292+
{{ legend }}
293+
</div>
294+
</template>
295+
<template #tooltip-before="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
296+
#BEFORE {{ series.name }}
297+
</template>
298+
<template #tooltip-after="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
299+
#AFTER {{ series.name }}
300+
</template>
235301
</VueUiTreemap>
236302
</template>
237-
303+
238304
<template #VDUI-build>
239305
<VueDataUi component="VueUiTreemap" :dataset="dataset" :config="config" :key="`VDUI-build_${step}`" @selectDatapoint="selectDatapoint" @selectLegend="selectLegend">
306+
<template #svg="{ svg }">
307+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
308+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
309+
</template>
310+
<template #rect="{ rect, shouldShow, fontSize, isZoom, textColor }">
311+
#RECT
312+
<div style="font-size: 12px">
313+
{{ rect, shouldShow, fontSize, isZoom, textColor }}
314+
</div>
315+
</template>
316+
<template #legend="{ legend }">
317+
#LEGEND
318+
<div style="font-size: 8px">
319+
{{ legend }}
320+
</div>
321+
</template>
322+
<template #tooltip-before="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
323+
#BEFORE {{ series.name }}
324+
</template>
325+
<template #tooltip-after="{ datapoint, seriesIndex, series, config, bars, lines, plots }">
326+
#AFTER {{ series.name }}
327+
</template>
240328
</VueDataUi>
241329
</template>
242330

0 commit comments

Comments
 (0)