fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

How to eliminate unwanted lines in line chart? (bug)

I've got a strange problem with unwanted horizontal lines in my line chart:

http://jsfiddle.net/8LJwx/

Note that the problem goes away when i remove the ROTATION parameter from the x-axis labels,
OR when i remove the CATEGORIES parameter from the x-axis labels.

It's hard to debug this problem when it goes away when I remove seemingly unrelated parameters.

It looks like a bug?

Here is another test case, I can't seem to get rid of the extra lines no matter what i change:

http://jsfiddle.net/8Nr46/
levipage
Posts: 249
Joined: Wed Sep 01, 2010 3:28 pm

Re: How to eliminate unwanted lines in line chart? (bug)

http://jsfiddle.net/8Nr46/18/

Getting rid of tickPixelInterval seems to solve the problem for me. But yeh, looks like a bug. The tickPixelInterval parameter is mostly useless since it ignores it most of the time anyway.
levipage
Posts: 249
Joined: Wed Sep 01, 2010 3:28 pm

Re: How to eliminate unwanted lines in line chart? (bug)

I take that back actually... once I changed the chart height the problem showed up again:
http://jsfiddle.net/8Nr46/22/
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

Sounds like this is a bug? Any idea when it might be fixed?
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: How to eliminate unwanted lines in line chart? (bug)

In your examples - if you enable chart title it'll look correct. I reported an issue here: https://github.com/highslide-software/h ... /issue/150
Slawek Kolodziej
Highcharts support team
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

Thanks for being so responsive. It's great working with a product that's so well supported.
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

hfrntt wrote:In your examples - if you enable chart title it'll look correct. I reported an issue here: https://github.com/highslide-software/h ... /issue/150
note that the above mentioned page includes a link to an example of the problem, but the link appears to be incorrect.
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

hfrntt wrote:In your examples - if you enable chart title it'll look correct. I reported an issue here: https://github.com/highslide-software/h ... /issue/150
Update:

It doesn't look like enabling the chart title is a valid workaround to the problem.

Here is an example of a chart with the problem. It has the default chart title:

http://jsfiddle.net/bfQeJ/985/

Another example of a chart with the problem. It has a specific (non-empty) chart title:

http://jsfiddle.net/bfQeJ/986/

Any idea when this might get fixed?
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: How to eliminate unwanted lines in line chart? (bug)

The chart title itself isn't directly related to the issue - the problem is to find the right number of ticks for the given plot height. When toggling the chart title, in your example you hit a blind spot where the algorithm breaks. It only happens when using multiple (unlinked) axes. We'll try to fix this before the next maintenance release.
Torstein Hønsi
CTO, Founder
Highsoft
RMillard
Posts: 1
Joined: Mon Jan 10, 2011 4:50 pm

Re: How to eliminate unwanted lines in line chart? (bug)

Whilst not the cause above using startOnTick: false, for multiple y axis results in additional lines also.
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

torstein.honsi wrote:We'll try to fix this before the next maintenance release.
Looks like this was not fixed in the latest release. Any idea when a fix will be made available?
levipage
Posts: 249
Joined: Wed Sep 01, 2010 3:28 pm

Re: How to eliminate unwanted lines in line chart? (bug)

fogcity wrote:bump
Apparently making new chart types is more important than fixing existing ones that don't work correctly. Very frustrating.
fogcity
Posts: 66
Joined: Tue Aug 17, 2010 8:56 pm

Re: How to eliminate unwanted lines in line chart? (bug)

while i am frustrated about this bug, it's mostly because it's basically the only blemish that remains on an otherwise stellar product. so i don't resent the appearance of new features (some of which i have used myself) even though this bug remains unfixed. for the cost (free or close to free), highcharts is a stellar software package and the support is better than many products i've worked with that cost far more.

that said, this should really be fixed some time soon :)
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: How to eliminate unwanted lines in line chart? (bug)

It's a bit hard to understand this issue - we can't just increase the number of ticks on the linked axis, as it will cause the extremes to become wrong. And we currently don't have a way to force it into a certain number of ticks. In theory it could cause the linked axis to have ticks like 0, 16.67, 33.33 etc.

Instead I recommend you hide the grid lines on the linked axis by setting gridLineWidth to 0: http://jsfiddle.net/highcharts/bfQeJ/1750/
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highcharts Usage”