ember-cli-d3 icon indicating copy to clipboard operation
ember-cli-d3 copied to clipboard

HTML Support

Open anlumo opened this issue 9 years ago • 2 comments

Hi,

I'm not sure if this is the right way to do it, but I've added HTML support to your d3 integration.

Usage is the same as with the svg mode, but it doesn't create an container element, it just uses the already existing <div>.

anlumo avatar Mar 29 '16 15:03 anlumo

Hi @anlumo!

Can you explain your use case? The reason that this was not initially supported is because you can just overlay whatever HTML you like on top of {{data-visual}}.

{{#data-visual}}
{{/data-visual}}
<div>HTML here and position absolute the elements so they overlay</div>

You can add some test cases to illustrate your use case. So we hit 2 birds with 1 stone.

ming-codes avatar Mar 31 '16 01:03 ming-codes

The reason is that I want to use d3.js for generating the HTML on the page as well, not HTMLBars. The component I put into the data-visual already gets the d3 context object to start creating elements.

I'll try to write some test cases asap.

anlumo avatar Mar 31 '16 09:03 anlumo