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

PlotLines missing className #8415

Closed
boba-keyost opened this Issue May 31, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@boba-keyost

boba-keyost commented May 31, 2018

Expected behaviour

PlotLines path should have className attribute

Live demo with steps to reproduce

https://jsfiddle.net/boba_keyost/4ds4hhmL/

Problem In

Attribs object that already contains className reassigned here

attribs = {
'class': 'highcharts-plot-' + (isBand ? 'band ' : 'line ') +
(options.className || '')
},
groupAttribs = {},
renderer = axis.chart.renderer,
groupName = isBand ? 'bands' : 'lines',
group;
// logarithmic conversion
if (axis.isLog) {
from = axis.log2lin(from);
to = axis.log2lin(to);
value = axis.log2lin(value);
}
/*= if (build.classic) { =*/
// Set the presentational attributes
if (isLine) {
attribs = {
stroke: color,
'stroke-width': options.width
};
if (options.dashStyle) {
attribs.dashstyle = options.dashStyle;
}

@TorsteinHonsi TorsteinHonsi added the Bug label Jun 1, 2018

@TorsteinHonsi TorsteinHonsi self-assigned this Jun 1, 2018

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