# Transforms field of trace objects for analysis

**URL:** <https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977>\
**Category:** plotly.js\
**Created:** [July 18, 2017, 3:46pm UTC](https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977 "2017-07-18T15:46:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![silly\_lily](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@silly\_lily](https://community.plotly.com/u/silly_lily)\
**Post date:** [July 18, 2017, 3:46pm UTC](https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977/1 "2017-07-18T15:46:08Z")

</div>

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
            }
        ]
```

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [July 18, 2017, 7:28pm UTC](https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977/2 "2017-07-18T19:28:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![choc](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@choc](https://community.plotly.com/u/choc)\
**Post date:** [December 7, 2024, 2:07am UTC](https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977/3 "2024-12-07T02:07:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Saratoga](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/saratoga/32/28634_2.png) [@Saratoga](https://community.plotly.com/u/Saratoga)\
**Post date:** [March 13, 2025, 4:03am UTC](https://community.plotly.com/t/transforms-field-of-trace-objects-for-analysis/4977/4 "2025-03-13T04:03:54Z")

</div>

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](https://codepen.io/saratoga01/pen/emYedoO?editors=0010)
