[email protected]
Posts: 1
Joined: Wed Dec 05, 2018 4:45 pm

Syntax Error adding CSS

Wed Dec 05, 2018 4:52 pm

I'm trying to add styles to an item in labels but getting a syntax error no matter what I do. the tool tip says to do it this way:

style: {
left: '100px',
top: '100px'
}

but the syntax error says unexpected token at position 0.

Does anyone know the correct syntax for adding CSS to items in labels? Sorry it's such a basic question but I have a hard deadline for a client. Thanks in advance!

rafalS
Posts: 664
Joined: Thu Jun 14, 2018 11:40 am

Re: Syntax Error adding CSS

Wed Dec 05, 2018 5:21 pm

Hi, aleent1!

What labels exactly are you talking about? What do you want to move and where? Can you send me your chart's config or screen?

Best regards!
Rafal Sebestjanski,
Highcharts Developer

Return to “Highcharts Cloud”