Giter Site home page Giter Site logo

frunck8206 / ant-design-charts-blazor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ant-design-blazor/ant-design-charts-blazor

0.0 1.0 0.0 47.59 MB

A Blazor chart library, based on G2Plot

Home Page: https://ant-design-blazor.github.io/ant-design-charts-blazor/

License: Apache License 2.0

HTML 28.90% C# 68.37% CSS 0.17% JavaScript 1.61% Less 0.95%

ant-design-charts-blazor's Introduction

ant-design-charts-blazor

A Blazor chart library, based on G2Plot

English | 简体中文

💿 Current Version

  • Release: AntDesign.Charts
  • Development: AntDesign.Charts

📦 Installation Guide

  • Go to the project folder of the application and install the Nuget package reference

    $ dotnet add package AntDesign.Charts
    • Link the static files in wwwroot/index.html (WebAssembly) or Pages/_Host.razor (Server)
    <script src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.js"></script>
    <script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
    • Add namespace in _Imports.razor
    @using AntDesign.Charts
  • Finally, it can be referenced in the `.razor' component!

    <Line Data="data" Config="config" />
    
    @code{
        object[] data = new object[] {
            new  { year= "1991", value= 3 },
            new  { year= "1992", value= 4 },
            new  { year= "1993", value= 3.5 },
            new  { year= "1994", value= 5 },
            new  { year= "1995", value= 4.9 },
            new  { year= "1996", value= 6 },
            new  { year= "1997", value= 7 },
            new  { year= "1998", value= 9 },
            new  { year= "1999", value= 13 },
    };
    
        LineConfig config = new LineConfig()
        {
            title = new Title()
            {
                visible = true,
                text = "曲线折线图",
            },
            description = new Description()
            {
                visible = true,
                text = "用平滑的曲线代替折线。",
            },
            padding = "auto",
            forceFit = true,
            xField = "year",
            yField = "value",
            smooth = true,
        };
    }

    🔗 Links

  • Official Blazor Documentation

🤝 Contributing

PRs Welcome

If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.

💕 Donation

This project is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more backers. We will use the proceeds for community operations and promotion. You can support us in any of the following ways:

We will put the detailed donation records on the backer list.

❓ Community Support

If you encounter any problems in the process, feel free to ask for help via following channels. We also encourage experienced users to help newcomers.

  • Slack Group (Chinese & English)
  • Ding Talk Group (Chinese)
Scan QR Code with DingTalk

ant-design-charts-blazor's People

Contributors

1002527441 avatar elderjames avatar timchen44 avatar

Watchers

 avatar

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.