Coder Social home page Coder Social logo

Comments (9)

zyh0yh avatar zyh0yh commented on June 18, 2024

layout: {
type: "radial",
unitRadius: 800,
preventOverlap: true,
maxPreventOverlapIteration: 1000,
},
同时也开启了节点防重叠

from graphinsight.

pomelo-nwu avatar pomelo-nwu commented on June 18, 2024

@zyh0yh 是用的 G6 代码实现的吗

from graphinsight.

zyh0yh avatar zyh0yh commented on June 18, 2024

@zyh0yh 是用的 G6 代码实现的吗

是的,每次的渲染速度都在3-5分钟这样子

from graphinsight.

zyh0yh avatar zyh0yh commented on June 18, 2024

setNodes(nodes) { if (!nodes || nodes.length === 0) return []; let arr = nodes; arr.sort((a, b) => b.data.degrees - a.data.degrees); const ns = arr.map((node) => { this.setNodeType(node.data); let style = { ...node.data.style, fill: nodeTypeMap[node.data.ntype].color, stroke: nodeTypeMap[node.data.ntype].color, }; node.data.cluster = node.data.labels[0]; const stateStyles = { active: { fill: nodeTypeMap[node.data.ntype].color, stroke: nodeTypeMap[node.data.ntype].color, lineWidth: 4, opacity: 1, }, inactive: { opacity: 0.05, }, hover: { fill: "red", stroke: "#000", lineWidth: 1, }, }; return { type: nodeTypeMap[node.data.ntype].type, size: this.setNodeSize(node.data), ...node, style, stateStyles: stateStyles, }; }); return ns; },
这是我设置节点类型的方法

from graphinsight.

pomelo-nwu avatar pomelo-nwu commented on June 18, 2024

@zyh0yh 写个codesandbox复现下,我帮你艾特G6核心开发者

from graphinsight.

pomelo-nwu avatar pomelo-nwu commented on June 18, 2024

@zyh0yh 数据脱敏下,只写图结构

from graphinsight.

zyh0yh avatar zyh0yh commented on June 18, 2024

@zyh0yh 写个codesandbox复现下,我帮你艾特G6核心开发者

由于数据涉密,没办法进行网络的一个编写

@zyh0yh 数据脱敏下,只写图结构

好的,写好之后需要怎么操作呢

from graphinsight.

pomelo-nwu avatar pomelo-nwu commented on June 18, 2024

@zyh0yh 地址贴的这里,我们排查下

from graphinsight.

zyh0yh avatar zyh0yh commented on June 18, 2024

@zyh0yh 地址贴的这里,我们排查下

好的,那可能需要明天晚一点才能进行了,非常感谢你的帮助,我会在贴好之后给您一个回复

from graphinsight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.