All Projects → antvis → Graphin

antvis / Graphin

Licence: mit
A React toolkit for graph visualization based on G6

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Graphin

Workbase
Grakn Workbase (Knowledge IDE)
Stars: ✭ 106 (-78.01%)
Mutual labels:  knowledge-graph, graph-visualization
Lightkg
基于Pytorch和torchtext的知识图谱深度学习框架。
Stars: ✭ 452 (-6.22%)
Mutual labels:  knowledge-graph
Kglib
Grakn Knowledge Graph Library (ML R&D)
Stars: ✭ 405 (-15.98%)
Mutual labels:  knowledge-graph
Graphvizanim
A tool to create animated graph visualizations, based on graphviz.
Stars: ✭ 441 (-8.51%)
Mutual labels:  graph-visualization
Geistmap
An experimental personal knowledge base with a focus on connections
Stars: ✭ 425 (-11.83%)
Mutual labels:  knowledge-graph
Beautiful React Hooks
🔥 A collection of beautiful and (hopefully) useful React hooks to speed-up your components and hooks development 🔥
Stars: ✭ 5,242 (+987.55%)
Mutual labels:  react-components
Deeppath
code and docs for my EMNLP paper "DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoning"
Stars: ✭ 398 (-17.43%)
Mutual labels:  knowledge-graph
Cp Design
A configurable Mobile UI Components(React hooks+Typescript+Scss)组件库
Stars: ✭ 465 (-3.53%)
Mutual labels:  react-components
React Recipes
👩‍🍳 A React Hooks utility library containing popular customized hooks
Stars: ✭ 452 (-6.22%)
Mutual labels:  react-components
Vscode Es7 Javascript React Snippets
Extension for Javascript/React snippets with search supporting ES7 and babel features
Stars: ✭ 435 (-9.75%)
Mutual labels:  react-components
Ripplenet
A tensorflow implementation of RippleNet
Stars: ✭ 434 (-9.96%)
Mutual labels:  knowledge-graph
React Chat Ui
🙊 A library of React components for building chat UI's.
Stars: ✭ 424 (-12.03%)
Mutual labels:  react-components
React Virtualized
React components for efficiently rendering large lists and tabular data
Stars: ✭ 22,963 (+4664.11%)
Mutual labels:  react-components
Buffet
Buffet.js — React Components Library made with styled-components
Stars: ✭ 416 (-13.69%)
Mutual labels:  react-components
Patternfly React
A set of React components for the PatternFly project.
Stars: ✭ 454 (-5.81%)
Mutual labels:  react-components
Gnn4nlp Papers
A list of recent papers about Graph Neural Network methods applied in NLP areas.
Stars: ✭ 405 (-15.98%)
Mutual labels:  knowledge-graph
Ant Motion
🚴 Animate specification and components of Ant Design
Stars: ✭ 4,294 (+790.87%)
Mutual labels:  react-components
React Native Keyboard Aware Scroll View
A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
Stars: ✭ 4,540 (+841.91%)
Mutual labels:  react-components
Reactivesearch
Search UI components for React and Vue: powered by appbase.io / Elasticsearch
Stars: ✭ 4,531 (+840.04%)
Mutual labels:  react-components
Reactochart
📈 React chart component library 📉
Stars: ✭ 459 (-4.77%)
Mutual labels:  react-components

Graphin

A React toolkit for graph analysis based on G6

Version NPM downloads Latest commit

English | 简体中文

✨ Features

🎨 Good-looking elements, standardized style configuration

Graphin standardizes the visual mapping of graph elements. A Graphin's built-in node contains 5 parts: keyshape, label, halo, icon, and badges, each part can be driven by data. The built-in edges include three parts:keyshape, label, and halo. There are also corresponding style configurations for commonly used features, such as label backgrounds, self-loops, polygons, and dashed lines, etc. Try it online

node-style edge-style

📦 Automatic layout, easy to handle complex scenarios

Graphin has 10 built-in network graph layouts and 4 tree graph layouts to meet your needs of layout for different data types and different analysis scenarios. For features in complex business scenarios, such as layout switching, dynamic layouts, sub-graph layouts, etc., can be easily realized through data-driven layout. Try it online

node-expand layout-switch

📝 Thoughtful interactions, easy to customize

Graphin provides 13 interactive components, including canvas zooming, panning, brush selection, lasso select , automatic resize, and also element dragging, selection, hovering, highlighting, expanding and collapsing, etc., to meet your interactive needs for different analysis scenarios Try it online

behaviors

🚀 Rich components, derived from precipitation of business development

Currently Graphin provides 7 analysis components: ContextMenu, Tooltip, MiniMap, Toolbar, FishEye, Hull, and Legend. 17+ analysis components will be provided in the future. Try it online components

⚙️ Comfortable development experience, in line with React users' cognition

typescript

🖥 Browser support

  • Graphin icons use Proxy, the font icon may not be displayed correctly on some browsers that do not support Proxy syntax
  • The Graphin rendering engine of Graphin is G6, which relies on the browser API and does not support SSR
IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE11, Edge last 2 versions last 2 versions last 2 versions

📦 Installation

If you are using React, then you can use Graphin as a normal React component.

It uses yarn to install dependencies in this article, while npm is also fine. The following commands install Graphin's core components @antv/graphin and analysis components @antv/graphin-components, and Graphin's official icon library @antv/graphin-icons

yarn add @antv/[email protected] --save
yarn add @antv/[email protected] --save
yarn add @antv/graphin-icons --save

🔨 Usage

Use Graphin Core Component

import React from 'react';
import Graphin from '@antv/graphin';
// mock data
const data = Utils.mock(10).circle().graphin();
export default () => {
  return <Graphin data={data} />;
};

Use Graphin Analysis Components

import React from 'react';
import Graphin from '@antv/graphin';
import { MiniMap } from '@antv/graphin-components';
// mock data
const data = Utils.mock(10).circle().graphin();
export default () => {
  return (
    <Graphin data={data}>
      <MiniMap />
    </Graphin>
  );
};

Use Graphin font icon

import React from 'react';
import Graphin from '@antv/graphin';
import { MiniMap } from '@antv/graphin-components';
// Import icon resource files
import iconLoader from '@antv/graphin-icons';
import '@antv/graphin-icons/dist/index.css';
// mock data
const data = Utils.mock(10).circle().graphin();
// Register in Graphin
const { fontFamily, glyphs } = iconLoader();
const icons = Graphin.registerFontFamily(iconLoader);
// Use icons
data.nodes.forEach(node => {
  node.style = {
    icon: {
      type: 'font', // Specify the icon to be Font type
      fontFamily: fontFamily, // Specify FontFamily
      value: icons.home, // Specify the value of the icon
    },
  };
});
export default () => {
  return (
    <Graphin data={data}>
      <MiniMap />
    </Graphin>
  );
};

👨‍💻 Upgrade Guide

If you are a user from Graphin1.x, this Upgrade Guide may help you. If you encounter upgrade problems, you can go to github issue section, and feel free to create issues if it's not already there.

⌨️ Development Guide

If you want to run Graphin locally, you may wish to read this Contribution Guide. We hope more contributors can join our team to make Graphin better together.

More Info

DingTalk

You can scan the QR code to join graphin's group chat

DingTalk ```
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].