Skip to content

Editor gives Formatter issue #221

@tomlinsonml

Description

@tomlinsonml

Expected behaviour
//save proj
var projectStr = chartEditor.editor.chart.toProjectStr();

//load proj
chartEditor.editor.chart.loadProject(chartProjectJson);

my previously built chart should load just fine

Actual behaviour
Pulling project backup after saving a project results in formatter error:
TypeError: (c[(t.formatPrefix + "Formatter")] || c.formatter).call is not a function

if i remove the formatter manually from my project json and load back into the editor everything works just fine.
"formatter": "function(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)}",

Live demo with steps to reproduce
Product version
editor 2.2 and highcharts version Highcharts JS v11.4.8 (2024-08-29)

Affected browser(s)
Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions