File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <h2 >Force-based label placement</h2 >
3+ <h2 >Force-based label placement I </h2 >
44 <svg id =" viz" ></svg >
55 </div >
66</template >
77
88<script >
99import * as d3 from ' d3'
1010export default {
11- name: ' ForceBasedLabelPlacement ' ,
11+ name: ' ForceBasedLabelPlacementI ' ,
1212 mounted () {
1313 let width = 1000
1414 let height = 700
1515 let color = d3 .scaleOrdinal (d3 .schemeCategory10 )
16- d3 .json (' http://localhost:8080/json/miserables.json' ).then (function (graph ) {
16+ let fileAddress = window .location .origin + ' /json/miserables.json'
17+ console .log (fileAddress)
18+ d3 .json (fileAddress).then (function (graph ) {
1719 let label = {
1820 ' nodes' : [],
1921 ' links' : []
Original file line number Diff line number Diff line change 6363 <v-btn icon >
6464 <v-icon >mdi-bell</v-icon >
6565 </v-btn >
66+ <v-btn icon >
67+ <v-avatar size =" 36" >
68+ <span class =" white--text subtitle-1" >language</span >
69+ </v-avatar >
70+ </v-btn >
6671 </v-app-bar >
6772 <v-content >
6873 <v-container >
@@ -82,6 +87,7 @@ export default {
8287 drawer: null ,
8388 itemActive: 0 ,
8489 subItemActive: null ,
90+ language: ' EN' ,
8591 items: [
8692 // {
8793 // icon: 'mdi-alpha-b-box-outline',
You can’t perform that action at this time.
0 commit comments