GithubHelp home page GithubHelp logo

Comments (3)

bm64 avatar bm64 commented on June 22, 2024

Hello @mayur249 and thanks for sharing the idea.

This topic was brought up on stack overflow some time ago too: https://stackoverflow.com/questions/64334052/need-a-single-border-for-stacked-bar-graph-in-highcharts
Suggested workaround was to use a dummy series to create a border:
https://jsfiddle.net/BlackLabel/vz87adgu/

from highcharts.

mayur249 avatar mayur249 commented on June 22, 2024

Hello @bm64, thank you so much for giving your time for sharing this solution.
One issue I noticed with this solution is that if we want to hover over a particular stack in a bar, we can't do it because it is considering that I am hovering over an entire bar
Screenshot 2024-03-10 at 7 50 43 PM

But for this zIndex was the solution so I applied that and got the solution.
Screenshot 2024-03-10 at 7 50 58 PM
Added the solution in this jsfiddle: https://jsfiddle.net/mayur249/21bp6tjy/

But @bm64, after applying the above solution, there is one more problem that I am facing.
This problem is related to another feature request which I have raised: https://github.com/highcharts/highcharts/issues/20781

The thing is if the stack's value which is at top is zero, I want to change the border radius of the below stacked column dynamically. But currently I am not getting any option to do that. So because of that I am facing this issue here:
Screenshot 2024-03-10 at 8 06 55 PM

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on June 22, 2024

@mayur249 An alternative to setting the zIndex is to apply pointer-events: none. That way the border is not clipped: https://jsfiddle.net/highcharts/ycpa8svt/

from highcharts.

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.