Giter VIP home page Giter VIP logo

Comments (3)

joadan avatar joadan commented on June 10, 2024

Hi,

I'm sorry but I don't think this is an issue in the wrapper.

You codepen is not matching you blazor sample code.
One tip is to set the debug flag on the component and then you can check the options sent to javascript in the browser console.

from blazor-apexcharts.

LukeConfait avatar LukeConfait commented on June 10, 2024

Hi,
Thanks for reply, I have updated the codepen and written some blazor code that should be roughly the same. After updating it I am now seeing the behavior on the apex charts js side as well. So it would appear it is actually an issue on that end after all.
This is how it looks on the codepen,
image

and this is how it looks in my blazor code.
image

@page "/testpage"
@using ApexCharts

<div style="height:200px; width:400px; border-width:2px; border:solid"> 
    <ApexChart TItem="Tuple<decimal, string>"
               Options="@_chartOptions"
               Debug="true">
        <ApexPointSeries TItem="Tuple<decimal, string>"
                         Items="@_data"
                         Name="Name"
                         SeriesType="@SeriesType.Pie"
                         YValue="@(e => e.Item1)"
                         XValue="@(e => e.Item2)"
                         ShowDataLabels="true"/>
    </ApexChart>
</div>

@code {
    List<Tuple<decimal, string>> _data = new()
    {
        Tuple.Create((decimal)44, "data1"),
        Tuple.Create((decimal)55, "data2"),
        Tuple.Create((decimal)13, "data2"),
        Tuple.Create((decimal)33, "data2"),
    };

    ApexChartOptions<Tuple<decimal, string>> _chartOptions = new()
        {
            Chart = new Chart()
            {
                Height = "100%",
            },

            Legend = new Legend
            {
                Position = LegendPosition.Bottom,
                FontSize = "14px",
                HorizontalAlign = ApexCharts.Align.Center,
            }
        };
}

from blazor-apexcharts.

joadan avatar joadan commented on June 10, 2024

Hi,

If you believe this is an issue in apexcharts.js you should raise an issue in that repo.
Thank you,

from blazor-apexcharts.

Related Issues (20)

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.