ant-design-charts-blazor icon indicating copy to clipboard operation
ant-design-charts-blazor copied to clipboard

I can't make the bubble chart to display the bubbles

Open mrjrdg opened this issue 4 years ago • 0 comments

First of all thank you for the librairy it's so great.

I can't make the bubble chart work. Honestly someone should update the bubble chart exemple because i just cant find the pattern to make it work and im probably not alone i pass nearly 3 hour. I tried so many values in parameters i'm just totally lost. I succesfully make nearly all the charts to work except this one. There is just nothing that appear on the chart.


                Earnings.Add(new
                {
                    YField = earning.EpsEstimated,
                    XField = i,
                    size = 9269612,
                    type = "Estimated"
                });

                Earnings.Add(new
                {
                    YField = earning.Eps,
                    XField = i,
                    size = 9269612,
                    type = "Actual"
                });
    private readonly BubbleConfig config1 = new BubbleConfig
    {
        YField = "YField",
        XField = "XField",
        SizeField = "size",
        ColorField = new[] { "type" },
        Color = new[] { "blue", "red" },
        XAxis = new ValueTimeAxis
        {
            Visible = true,
            Min = -5,
            Max = 5,
        },
        YAxis = new ValueTimeAxis
        {
            Visible = true,
            Min = -5,
            Max = 5
        }
    };

mrjrdg avatar Sep 05 '21 03:09 mrjrdg