haikal/staticfiles/silk/js/pages/profile_detail.js
Marwan Alwali 1c97b705db update
2025-07-23 13:57:24 +03:00

16 lines
468 B
JavaScript

function createViz() {
var profileDotURL = JSON.parse(document.getElementById("profileDotURL").textContent);
$.get(
profileDotURL,
{ cutoff: $('#percent').val() },
function (response) {
var svg = '#graph-div';
$(svg).html(Viz(response.dot));
$(svg + ' svg').attr('width', 960).attr('height', 600);
svgPanZoom(svg + ' svg', { controlIconsEnabled: true });
}
);
}
createViz();