ant-design-blazor / ant-design-charts-blazor

A Blazor chart library, based on G2Plot
https://ant-design-blazor.github.io/ant-design-charts-blazor/
Apache License 2.0
178 stars 40 forks source link

Radar Chart #83

Open leylii opened 2 years ago

leylii commented 2 years ago
    AngleField = "item",
    RadiusField = "score",

It seems that these fields are not included in RadarConfig any longer. I used XField and YField instead of them but still, the radar chart does not work and it is not drawn. I used exactly the example here: https://antblazor.com/en-US/charts/radar and I only replaced the above fields with XField and YFiled. Please give me some help.

Oxilith commented 2 years ago

Any update?

dkosinskyi commented 2 years ago

From official project template

    RadarConfig config1 = new RadarConfig()
    {
        Title = new Charts.Title()
        {
            Visible = true,
            Text = "基础雷达图",
        },
        XField = "item",
        YField = "score",
        RadiusAxis = new ValueAxis()
        {
            Grid = new BaseAxisGrid()
            {
                AlternateColor = new string[] { "rgba(0, 0, 0, 0.04)", null },
            },
        },
        Area = new RadarViewConfigArea()
        {
            Visible = false,
        },
        Point = new RadarViewConfigPoint()
        {
            Visible = true,
        },
    };
true-perfect-code commented 1 year ago

Hi @superjerry88 I also tried using the radar component, but it doesn't work. If I download the Ant chart from the repository and run the project in Visual Studio, everything works. I suspect that an update is needed here. Is anything being prepared?

Thanks pc

superjerry88 commented 1 year ago

Sorry for the lack of update on the documentation. Here is a working example of Radar Chart based on the demo project https://github.com/ant-design-blazor/ant-design-charts-blazor/blob/master/src/AntDesign.Charts.Docs/Demos/Radar/Radar_Chart.razor

Hope it helps !

image

true-perfect-code commented 1 year ago

@superjerry88

Thanks Jerry for the example reproduction !

pc