File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ import Card from 'react-bootstrap/Card'
1212import Spinner from '../../Spinner'
1313import cachedData from './data'
1414
15+ function nodeClickHandler ( node , event ) {
16+ console . log ( "YOU CLICKED" , node [ "id" ] )
17+ //window.open(`https://twitter.com/${node["id"]}`, '_blank')
18+ window . open ( `/user-opinions?sn=${ node [ "id" ] } ` , '_blank' )
19+ }
20+
1521const ForceTree = ( { data } ) => {
1622
1723 data [ "nodes" ] = data [ "nodes" ] . map ( function ( node ) {
@@ -51,6 +57,7 @@ const ForceTree = ({ data }) => {
5157 nodeVal = { 5 }
5258 nodeLabel = { ( node ) => `@${ node [ "id" ] } ` }
5359 nodeRelSize = { 1 }
60+ onNodeClick = { nodeClickHandler }
5461
5562 //dagMode="td"
5663 //dagLevelDistance={300}
Original file line number Diff line number Diff line change @@ -18,8 +18,11 @@ export default function BotNetworks() {
1818 < Card . Title > < h3 > Bot Networks</ h3 > </ Card . Title >
1919
2020 < Card . Text >
21- The chart below shows the interconnections between bots in each community.
21+ The chart below shows the interconnections between bots in each < a href = "/bot-communities" > community</ a > .
22+ { " " } Click any circle to view that bot's Impeachment Opinions in a new window.
2223 </ Card . Text >
24+
25+
2326 < NetworkGraph />
2427
2528 { /*
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import ActivitySection from './Activity/Section'
66import BeneficiariesSection from './Beneficiaries/Section'
77import LanguageSection from './Language/Section'
88import ImpactSection from './Impact/Section'
9+ import NetworksSection from './Networks/Section'
910import CommunitiesSection from './Communities/Section'
1011import ClassificationSection from './Classification/Section'
1112
@@ -15,6 +16,7 @@ export default function BotAnalysisPage() {
1516 < SectionIndex />
1617
1718 < ImpactSection />
19+ < NetworksSection />
1820 < BeneficiariesSection />
1921 < LanguageSection />
2022 < ActivitySection />
You can’t perform that action at this time.
0 commit comments