# Disable autosize warning

**URL:** https://discuss.elastic.co/t/disable-autosize-warning/275127
**Category:** Kibana
**Tags:** vega
**Created:** [June 7, 2021, 9:47am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127 "2021-06-07T09:47:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)
#### Post date: [June 7, 2021, 9:47am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/1 "2021-06-07T09:47:07Z")

</div>

Kibana version : 7.10

Elasticsearch version : 7.10

APM Server version : 7.10

APM Agent language and version : java 1.8

Fresh install or upgraded from other version? fresh install

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. :-no

I have created a vega visualization and on the panel I get a warning

- "width" and "height" params are ignored because "autosize" is enabled. Set "autosize": "none" to disable..

Is there a way we can disable this warning so that it will stop showing the warning in dashboard.

I tired adding the autosize:none still its not going away.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [June 7, 2021, 9:51am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/2 "2021-06-07T09:51:47Z")

</div>

Can you share your vega spec?

---

<div class="post-metadata">

### Author: ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)
#### Post date: [June 7, 2021, 9:54am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/3 "2021-06-07T09:54:21Z")

</div>

```auto
{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "description": "An example of Cartesian layouts for a node-link diagram of hierarchical data.",
  "width": 600,
  "height": 600,
  "padding": 5,
  "signals": [
    {
      "name": "labels",
      "value": true,
      "bind": {
        "input": "checkbox"
      }
    },
    {
      "name": "layout",
      "value": "tidy",
      "bind": {
        "input": "radio",
        "options": [
          "tidy",
          "cluster"
        ]
      }
    },
    {
      "name": "links",
      "value": "diagonal",
      "bind": {
        "input": "select",
        "options": [
          "line",
          "curve",
          "diagonal",
          "orthogonal"
        ]
      }
    },
    {
      "name": "separation",
      "value": false,
      "bind": {
        "input": "checkbox"
      }
    }
  ],
  "data": [
    {
      "name": "table",
      "url": {
      "%context%": true,
      "%timefield%": "@timestamp",
      "index": "apm-retmon",
      "body": {
        "aggs": {
          "time_buckets": {
            "date_histogram": {
              "field": "@timestamp",
              "interval": {"%autointerval%": true},
              "extended_bounds": {
                "min": {"%timefilter%": "min"},
                "max": {"%timefilter%": "max"}
              },
              "min_doc_count": 0
            }
          }
        },
        "size": 10
     } }
      "format": {"property": "hits.hits"
      } ,
   
      "transform": [
      
      {"type": "formula", "as": "OrgId", "expr": "datum._source['labels.OrgId']"},
       {"type": "formula", "as": "Region", "expr": "datum._source['labels.Region']"},
       {"type": "formula", "as": "StoreNum", "expr": "datum._source['labels.StoreNum']"},
        {"type": "formula", "as": "RegisterNum", "expr": "datum._source['labels.RegisterNum']"}
        {
          "type": "fold",
          "fields": [
            "OrgId",
            "Region",
            "StoreNum",
            "RegisterNum"
          ]
        },
        {
          "type": "formula",
        "as": "id",
          "expr": "datum.key == 'OrgId' ? datum.OrgId : datum.key == 'Region' ? join([datum.OrgId,datum.Region],'-') : datum.key == 'StoreNum' ? join([datum.OrgId, datum.Region, datum.StoreNum],'-') : datum.key == 'RegisterNum' ? join([datum.OrgId, datum.Region, datum.StoreNum, datum.RegisterNum],'-'):null"
        },
        {
          "type": "formula",
          "as": "parent",
          "expr": "datum.key == 'OrgId' ? null : datum.key == 'Region' ? datum.OrgId : datum.key == 'StoreNum' ? join([datum.OrgId, datum.Region],'-') : datum.key == 'RegisterNum' ? join([datum.OrgId, datum.Region, datum.StoreNum],'-'):null"
        },
        {
          "type": "filter",
          "expr": "isDefined(datum.value)"
        },
        {
          "type": "aggregate",
          "groupby": [
            "id",
            "parent"
          ]
        },
        {
          "type": "formula",
          "as": "label",
          "expr": "peek(split(datum.id,'-'))"
        }
      ]
    },
    {
      "name": "tree",
      "source": "table",
      "transform": [
        {
          "type": "stratify",
          "key": "id",
          "parentKey": "parent"
        },
        {
          "type": "tree",
          "method": {
            "signal": "layout"
          },
          "size": [
            {
              "signal": "height"
            },
            {
              "signal": "width - 100"
            }
          ],
          "separation": {
            "signal": "separation"
          },
          "as": [
            "y",
            "x",
            "depth",
            "children"
          ]
        }
      ]
    },
    {
      "name": "links",
      "source": "tree",
      "transform": [
        {
          "type": "treelinks"
        },
        {
          "type": "linkpath",
          "orient": "horizontal",
          "shape": {
            "signal": "links"
          }
        }
      ]
    }
  ],
  "scales": [
    {
      "name": "color",
      "type": "linear",
      "range": {
        "scheme": "magma"
      },
      "domain": {
        "data": "tree",
        "field": "depth"
      },
      "zero": true
    }
  ],
  "marks": [
    {
      "type": "path",
      "from": {
        "data": "links"
      },
      "encode": {
        "update": {
          "path": {
            "field": "path"
          },
          "stroke": {
            "value": "#ccc"
          }
        }
      }
    },
    {
      "type": "symbol",
      "from": {
        "data": "tree"
      },
      "encode": {
        "enter": {
          "size": {
            "value": 100
          },
          "stroke": {
            "value": "#fff"
          }
        },
        "update": {
          "x": {
            "field": "x"
          },
          "y": {
            "field": "y"
          },
          "fill": {
            "scale": "color",
            "field": "depth"
          }
        }
      }
    },
    {
      "type": "text",
      "from": {
        "data": "tree"
      },
      "encode": {
        "enter": {
          "text": {
            "field": "label"
          }, "fill": {
            "value": "white"
          },
          "fontSize": {
            "value": 9
          },
          "baseline": {
            "value": "middle"
          }
        },
        "update": {
          "x": {
            "field": "x"
          },
          "y": {
            "field": "y"
          },
          "dx": {
            "signal": "datum.children ? -7 : 7"
          },
          "align": {
            "signal": "datum.children ? 'right' : 'left'"
          },
          "opacity": {
            "signal": "labels ? 1 : 0"
          }
        }
      }
    }
  ]
}

```

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [June 7, 2021, 9:59am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/4 "2021-06-07T09:59:31Z")

</div>

Setting `"autosize": "none"` right next to width and height works fine for me - are you sure you added it to the right level in the spec?

---

<div class="post-metadata">

### Author: ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)
#### Post date: [June 7, 2021, 10:17am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/5 "2021-06-07T10:17:39Z")

</div>

I added at the right layer and the warning disappeared but my very first node is not displaying the label.  
I also would like to remove the signal at the bottom left . Pls assist

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2021, 10:17am UTC](https://discuss.elastic.co/t/disable-autosize-warning/275127/6 "2021-07-05T10:17:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
