I have a Highcharts chart which is, for some reason, showing odd characters before the series title only on the data point pop up. I am using the default popup and highcharts 4.0.1.
I currently set all series to have the title hi
to ensure nothing in my code was messing this up. Also if I output countsGraph.series[0].name
I also get hi
.
What is causing this? Unfortunately I cannot make a fiddle at the moment as my access to HighCharts.com is playing up.
Here is how I create the series
// Create new series if requried
if (!series[c]) {
series[c] = {
name: "hi",
data: []
};
}
I had the same issue. Encoding in Notepad++ was set to 'UTF-8 without BOM'. When I switched it to 'UTF-8' it fixed it. Thanks!
UPDATE - that had some undesirable effects on other stuff, so I ended up adding to the html:
and that fixed it all
the simple solution to all the problem is using a tooptip
code is as follow:
workable and easy solution to remove the weird character on hover on highcharts.
Most probably you are using different coding than UTF-8. You can simply remove that character, by changing
pointFormat
, from:to:
Or, as just
@Adam Goodwin
pointed out, set default format in your options: