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

PlotLines missing className #8415

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

PlotLines missing className #8415

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


Copy link

@boba-keyost boba-keyost commented May 31, 2018

Expected behaviour

PlotLines path should have className attribute

Live demo with steps to reproduce

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',
// 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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.