1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Minor Updates

This commit is contained in:
cmack 2020-08-10 10:32:46 +01:00
parent 9ddf8d07ec
commit 911ba8b7d5
2 changed files with 6 additions and 2 deletions

View file

@ -10,7 +10,7 @@
- x and y axis label set and appear in the dom but do not display next to the axis
- x and y axis label offset - does effect position of labels but does not render text (see above)
- x tick label overlaps bar, seems to be no apu method to change this? Could do it by querying for it in the dom
specifically and doing this: <tspan x="-10" dy="0.32em">4.0</tspan>
for this element: <tspan x="-10" dy="0.32em">4.0</tspan>
*/
let tooltip

View file

@ -70,6 +70,7 @@
if (notNull(unit)) {
legend.unit(unit)
}
legendContainer.datum(data).call(legend)
}
}
@ -78,5 +79,8 @@
</script>
{#if useLegend}
<div bind:this={legendElement} class={legendClass} />
<div
bind:this={legendElement}
style={`width: ${width}px`}
class={legendClass} />
{/if}