Ant Design Charts

repository·master·Indexed 24 days ago

https://github.com/ant-design/ant-design-charts

A React-based charting library built on visualization engines G2, G6, X6, and L7. It provides a high-level API for creating responsive, TypeScript-ready statistical charts, including components like Line, Dendrogram, Fishbone, FlowGraph, and FlowDirectionGraph.

Tokens
218K
Snippets
395
Records
927
Agent score
79%

What's inside @ant-design/charts

  1. Overview of Ant Design Charts

    master

    Ant Design Charts is a React-based charting library developed by the AntV team. It is designed to provide high-quality, research-backed chart configurations out of the box, requiring minimal configuration for standard use cases while remaining highly customizable for specific business needs.

    Key characteristics:

    • High-quality defaults: Charts are pre-configured for optimal developer and user experience.
    • Easy configuration: Allows for fine-grained adjustments to chart details.
    • Focus on discovery: Visual and interactive elements are optimized for displaying and discovering information.
  2. What is Ant Design Charts

    master
    Ant Design Charts is the React-friendly version of AntV, developed by the same team. It is designed to provide high-quality, out-of-the-box charts that focus on information discovery through visual and interactive experiences. It allows developers to generate charts as easily as using standard React components, with sensible default configurations that require minimal adjustment for most use cases.
  3. Use FlowGraph to represent processes and decision trees

    master

    The FlowGraph component is used to visually represent the steps and decision points of a process or system. It is suitable for:

    • Displaying linear processes or steps.
    • Planning and tracking project progress, clarifying task order and dependencies.
    • Building decision trees to show different decision points and paths.

    Each node represents a specific step or decision point, and the edges indicate the sequence and relationships between steps.

    import { FlowGraph } from '@ant-design/graphs';
  4. Use Liquid Water Wave Charts

    master

    The Liquid chart (also known as ripple or wave chart) visualizes data changes or progress by simulating the diffusion effect of water waves. It uses dynamic, multi-layered translucent waves to represent data 'intensity', 'progress', or 'impact range'.

    Common use cases include:

    • Representing progress (e.g., percentage completion).
    • Visualizing data intensity through wave radius or color.
    • Creating engaging, narrative-driven data visualizations with animated waves.
  5. Use FlowDirectionGraph to visualize data flow

    master

    The FlowDirectionGraph component is used to intuitively display flow paths and changes in magnitude. It is ideal for complex information environments where clear logical relationships or decision support are required, helping to visualize data flow and relationships to improve understanding and decision-making efficiency.

    import { FlowDirectionGraph } from '@ant-design/graphs';
  6. Use a Funnel Chart to visualize conversion processes

    master

    A Funnel Chart is used to show conversion efficiency across stages in a business process (e.g., "Exposure → Click → Inquiry → Order"). The chart's width at each stage is proportional to its value, creating a narrow-down shape that intuitively shows loss and retention at each step.

    Common use cases include:

    • Basic Funnel: Showing a single process flow.
    • Pyramid Shape: Using the shapeField to change the visual structure.
    • Transposed Layout: Using isTransposed to change the orientation.
    • Mirror Comparison: Using compareField to compare two different funnels side-by-side.
  7. Use the Venn chart to visualize set relationships

    master

    A Venn chart is used to represent relationships between sets (intersections, unions, etc.) using overlapping shapes. It is useful in mathematics, logic, statistics, and computer science.

    To use a Venn chart, you must provide a data array that includes a sets field to define the set relationships.

    For more complex examples, visit the Venn chart examples page.