d3-force-apex-plugin icon indicating copy to clipboard operation
d3-force-apex-plugin copied to clipboard

set the line thickness depending on the value

Open jekeam opened this issue 5 years ago • 4 comments

Good day how to set the line thickness depending on the value I can get in the database?

jekeam avatar Apr 09 '19 09:04 jekeam

Decided. Add to the file d3-force-3.0.0.min.js: after .style("stroke",function(t){return t.COLOR?t.COLOR:null}): .style("stroke-width",function(t){return t.WIDTH?t.WIDTH:null}) and added the appropriate column in the query

jekeam avatar Apr 09 '19 10:04 jekeam

Hi Jekeam,

that would be a valid fast solution.

You are not the first person who asked for a "weight" attribute for links. I have planned this for a future release. It will be something like with the node sizes with min and max configuration values for the stroke width and a calculation regarding the delivered min and max values for the weight attributes in your link data.

Hope I have time for it soon.

Just for info: Do you use the standalone version or the Oracle APEX plugin?

Best regards Ottmar

ogobrecht avatar Apr 09 '19 19:04 ogobrecht

Oracle APEX plugin

jekeam avatar Apr 10 '19 11:04 jekeam

Thanks for the feedback :-)

ogobrecht avatar Apr 10 '19 12:04 ogobrecht