Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected vertical line in full pie chart #6616

Open
zhy1stgg opened this issue Apr 20, 2017 · 11 comments
Open

Unexpected vertical line in full pie chart #6616

zhy1stgg opened this issue Apr 20, 2017 · 11 comments

Comments

@zhy1stgg
Copy link

@zhy1stgg zhy1stgg commented Apr 20, 2017

snipaste_20170420_193737

Live demo: http://jsfiddle.net/LLExL/7421/

@zhy1stgg zhy1stgg changed the title unExpected vertical line in full pie chart Unexpected vertical line in full pie chart Apr 20, 2017
@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Apr 24, 2017

Thanks for reporting.

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Apr 24, 2017

Workaround
Setting borderWidth to 1, borderColor to same value as point's color (null an series level setting) and setting color for zero-value points to 'none'. Demo:

@mateusvahl
Copy link

@mateusvahl mateusvahl commented May 22, 2017

If you have borderColor: null and borderWidth: 1 it will partially resolve, as you can see here:
http://jsfiddle.net/LLExL/7545/

But if you mouseover the pie chart, a small line appears:
line

@TorsteinHonsi , do you think I should create a new task for this, or do you not consider a bug?
Does anyone have a solution for this?

Many thanks,
Regards, Mateus.

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented May 24, 2017

I found a simple fix for it in the arc symbol, here's the result: http://jsfiddle.net/n01nng41/.

This is the kind of change that may be considered a bug by some (after all we are looking at one slice that starts and ends at the top), so depending on the feedback we may add an option for whether or not to close full-circle pie slices.

@anurag-desai
Copy link

@anurag-desai anurag-desai commented Jan 8, 2018

I have a highchart(pie chart) with multiple fields.Which is giving me issue for 0 values.

The conditions are as described below:

If my first field is 100% the pie chart renders a line of 0% for the other field
Reffer fiddle : http://jsfiddle.net/rndmmuz6/4/

but if my second field is 100% then the pie chart does not render a 0% field for the first fields
Reffer fiddle : http://jsfiddle.net/rndmmuz6/3/

I want the line to always appear.
highchartimages

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jan 8, 2018

Hi @anurag-desai

Thank you for reporting about the problem.
Value of 0 shouldn't produce slice, but it does that - it's very thin, but it's there in both cases. In the orange pie the blue slice is under the orange slice.

@KacperMadej KacperMadej reopened this Jan 8, 2018
@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jan 9, 2018

Workaround

You can override the shapeArgs to avoid closing the circles.

Highcharts.wrap(Highcharts.seriesTypes.pie.prototype, 'drawPoints', function(proceed) {
    Highcharts.each(this.points, function(p) {
        if (p.shapeArgs) {
            p.shapeArgs.open = false;
        }
    });
    proceed.call(this);
});

View it live on jsFiddle.

@Yatin07
Copy link

@Yatin07 Yatin07 commented Jul 1, 2019

Hi @TorsteinHonsi,
I am facing similar kind of issue in line highchart.
When my line chat is empty it will show a strikethrough white line on the text "Category".
Can you help me with that?

issue_appear_highchart

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Jul 2, 2019

Hi @Yatin07

Please contact our support team: https://www.highcharts.com/blog/support/ - this is our bug tracker and your issue is not connected to this Pie chart issue.

@stale
Copy link

@stale stale bot commented Dec 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale label Dec 31, 2020
@circleci-mu circleci-mu added this to To do in Development-Flow via automation Dec 31, 2020
@stale stale bot closed this Jan 10, 2021
Development-Flow automation moved this from To do to Done Jan 10, 2021
@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Jan 11, 2021

Unstale

Development-Flow automation moved this from Done to To do Jan 11, 2021
@stale stale bot removed the Status: Stale label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants