You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding the label annotation and editing it through annotations GUI (even without changing any parameters) makes the text inside the label disappear.
Click on the TXT icon to add the simple label to the chart
Click on the label
Click the pencil icon to edit it
Click save button (you don't have to change any data)
Product version
Highstock 11.0.1 (latest)
Internal note
Regression, last working version 10.3.3
The text was updated successfully, but these errors were encountered:
(function(H){H._modules['Extensions/Annotations/NavigationBindings.js'].prototype.fieldsToOptions=function(fields,config){H.objectEach(fields,(value,field)=>{constparsedValue=parseFloat(value),path=field.split('.'),pathLength=path.length-1;// If it's a number (not "format" options), parse it:if(H.isNumber(parsedValue)&&!value.match(/px|em/g)&&!field.match(/format/g)){value=parsedValue;}// Remove values like 0if(value!=='undefined'){letparent=config;path.forEach((name,index)=>{constnextName=H.pick(path[index+1],'');if(pathLength===index){// Last index, put value:(parent)[name]=value;}elseif(!(parent)[name]){// Create middle property:(parent)[name]=nextName.match(/\d/g) ? [] : {};parent=(parent)[name];}else{// Jump into next propertyparent=(parent)[name];}});}});returnconfig;}})(Highcharts);
Internal note:
Bug in regexp - missing em in the regexp here: !value.match(/px/g)
Actual behaviour
After adding the label annotation and editing it through annotations GUI (even without changing any parameters) makes the text inside the label disappear.
Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/hd49nfum/
Click on the
TXT
icon to add the simple label to the chartClick on the label
Click the pencil icon to edit it
Click save button (you don't have to change any data)
Product version
Highstock 11.0.1 (latest)
Internal note
Regression, last working version 10.3.3
The text was updated successfully, but these errors were encountered: