First ticker dissapears when usint category axis and reflow chart - was working in 1.4.7 #5928

Closed
plusz opened this Issue Nov 3, 2016 · 3 comments

Projects

None yet

3 participants

@plusz
plusz commented Nov 3, 2016 edited

Expected behaviour

first tick mark is displayed

<g class="highcharts-axis highcharts-xaxis ">
<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 295.5 319 L 295.5 329" opacity="1"></path>

<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 542.5 319 L 542.5 329" opacity="1"></path>

<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 790.5 319 L 790.5 329" opacity="1"></path>

<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 48.5 319 L 48.5 329" opacity="1"></path>

<path fill="none" class="highcharts-axis-line" stroke="#ccd6eb" stroke-width="1" d="M 49 319.5 L 790 319.5"></path></g>

Actual behaviour

first tick mark is deleted when chart reflow()

after window resize and reflow() last tick dissapears

<g class="highcharts-axis highcharts-xaxis ">
<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 195.5 319 L 195.5 329" opacity="1"></path>

<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 342.5 319 L 342.5 329" opacity="1"></path>

<path fill="none" class="highcharts-tick" stroke="#ccd6eb" stroke-width="1" d="M 490.5 319 L 490.5 329" opacity="1"></path>

<path fill="none" class="highcharts-axis-line" stroke="#ccd6eb" stroke-width="1" d="M 49 319.5 L 490 319.5"></path></g>

Live demo with steps to reproduce

http://jsfiddle.net/rrm45q0v/

Affected browser(s)

all
image

@plusz
plusz commented Nov 3, 2016

This issue is connected to data.js module.
I created the same chart with the same data, but read directly from series parameter, not from table.
It is working as expected.

http://jsfiddle.net/3pqsh0na/

@jon-a-nygaard jon-a-nygaard added the Bug label Nov 4, 2016
@jon-a-nygaard jon-a-nygaard self-assigned this Nov 4, 2016
@jon-a-nygaard
Collaborator
jon-a-nygaard commented Nov 4, 2016 edited

Internal Note: getLinearTickPositions is passed wrong min and max values.
Edit: When collecting data using the data module, it will set the attribute name on point, causing the nameToX to be executed.
Edit: point.name was not the cause.xAxis.uniqueNames: false` is the reason behind the issue. Simplified demo

@TorsteinHonsi
Collaborator

Minimal example: http://jsfiddle.net/highcharts/rrm45q0v/1/

The xAxis.uniqueNames option makes the difference.

@TorsteinHonsi TorsteinHonsi added a commit that closed this issue Nov 4, 2016
@TorsteinHonsi TorsteinHonsi Fixed #5928, first tick disappeared when redrawing chart with type ca…
…tegory and `uniqueNames = false`.
af6dd5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment