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

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

Comments

Projects
None yet
3 participants
@plusz

plusz commented Nov 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@plusz

plusz 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/

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

This comment has been minimized.

Show comment
Hide comment
@jon-a-nygaard

jon-a-nygaard Nov 4, 2016

Collaborator

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

Collaborator

jon-a-nygaard commented Nov 4, 2016

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

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Nov 4, 2016

Collaborator

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

The xAxis.uniqueNames option makes the difference.

Collaborator

TorsteinHonsi commented Nov 4, 2016

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

The xAxis.uniqueNames option makes the difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment