Minor Updates

This commit is contained in:
cmack 2020-08-10 10:32:46 +01:00
parent eccd316a01
commit 627f3d13b9
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 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 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 - 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 let tooltip

View File

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