Giter Site home page Giter Site logo

Comments (5)

junedchhipa avatar junedchhipa commented on April 30, 2024

Can you please provide more information?
Were you trying in horizontal bars or vertical columns?

I would like to see your code what have you tried.

from apexcharts.js.

katarina-simnova avatar katarina-simnova commented on April 30, 2024

Finally, annotations appeared in my chart, but they still do not work properly. Here is my code:

var options = {
        chart: {
            height: 200,
            type: 'bar',
            stacked: true,
        },
        plotOptions: {
            bar: {
                horizontal: true,
            },
        },
        series: [{
            name: 'Marine Sprite',
            data: [44]
        },{
            name: 'Striking Calf',
            data: [53]
        },{
            name: 'Tank Picture',
            data: [12]
        },{
            name: 'Bucket Slope',
            data: [9]
        },{
            name: 'Reborn Kid',
            data: [25]
        }],
        xaxis: {
            categories: ['Usage'],
        },
        legend: {
            show: false
        },
        annotations: {
            xaxis: [ {
                x: 100,
                borderColor: '#FEB019',
                label: {
                    text: 'limit',
                }
            }]
        }
    }

    var chart = new ApexCharts(
        document.querySelector("#chart"),
        options
    );
   
    chart.render();

Result:
chart

Annotation should be on tick 100.

from apexcharts.js.

junedchhipa avatar junedchhipa commented on April 30, 2024

Thanks for providing details, the code is helpful to generate the issue on my side as well.

I confirm that annotations doesnโ€™t works as expected on horizontal bar charts.
I will soon address the issue in the next patch release.

Thanks

from apexcharts.js.

bcruddy avatar bcruddy commented on April 30, 2024

@junedchhipa is this still an issue?

from apexcharts.js.

junedchhipa avatar junedchhipa commented on April 30, 2024

Yes, couldn't work on this issue. Just started working on it, thanks for reminding ;)

from apexcharts.js.

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.