diff --git a/static/js/generalText.js b/static/js/generalText.js index 7d1f20f..bcb768f 100644 --- a/static/js/generalText.js +++ b/static/js/generalText.js @@ -135,15 +135,16 @@ function buildSentetree() { }); tree.data(model.getRenderedGraphs(2)) .on('nodeMouseenter', (node) => { + console.log(node) $('#nodeTitle').removeClass('hidden') - $('#nodeTitleContent').html(node.data.topEntries.map((n) => data[n.id].rawtxt).join('
')) + $('#nodeTitleContent').html('") }) .on('nodeMouseleave', () => { $('#nodeTitle').addClass('hidden') }) .on('linkMouseenter', (node) => { $('#nodeTitle').removeClass('hidden') - $('#nodeTitleContent').html('連線粗細:連接的兩個單詞同時出現的頻率
連線顏色:同層級單詞為灰色連線,不同層級為橘色連線') + $('#nodeTitleContent').html('頻率:' + (node.freq / 10)) }).on('linkMouseleave', () => { $('#nodeTitle').addClass('hidden') })