d3-force-apex-plugin
d3-force-apex-plugin copied to clipboard
set the line thickness depending on the value
Good day how to set the line thickness depending on the value I can get in the database?
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
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
Oracle APEX plugin
Thanks for the feedback :-)