Transforms field of trace objects for analysis

Hi there,

playing around with the analysis function within the plotly online chart editor, I noticed that added traces produced as the result of e.g. curve fitting include a ‘transforms’ property providing information such as the analysis method, fit parameters, etc… Below is some example code of the transforms field I am referring to.

Do you know how this is processed by plotly, or where I can find further information about it, as I don’t understand yet, if and if so why, it would be necessary to include this field.
Thanks a lot for your help.

Cheers,
Lisa

   {
        "uid": "b80422", 
        "transforms": [
            {
                "regressand": "y", 
                "rms": "", 
                "parameters": [
                    {
                        "hold": false, 
                        "name": "m", 
                        "value": 1.8682052260154938, 
                        "error": 0.2655474929629778
                    }, 
                    {
                        "hold": false, 
                        "name": "b", 
                        "value": 1.7828914743469508, 
                        "error": 0.3665351259216918
                    }
                ], 
                "outputxrange": [], 
                "regressor": "x", 
                "inputUid": "bc471b", 
                "correlation": "", 
                "inputxrange": [], 
                "type": "fit", 
                "fitfunction": "m*x + b", 
                "interpolation": 50
            }
        ]

That’s just some internal fields https://plot.ly/create/ uses to store info about fits.

This is old discussion and I’m also have the same question but I couldn’t find any information about the curve fitting things in this [repo](https://github.com/plotly/react-chart-editor).

Does anyone know which library plotly uses for curve fitting? Or will it be available?

Check this out. In short, I use the CDN that Chart Studio uses, which is a more feature-rich version of the Plotly file.

In general, these are transformations applied to the data. These transformations aren’t available in the distributed Plotly file, and the transformations are deprecated in the latest version.

I don’t know how it works. I tried several options and parameters in Chart Studio, and only with linear regression and the moving average did I get a plot. There’s no documentation.

https://codepen.io/saratoga01/pen/emYedoO?editors=0010