Skip to content

Commit 6add191

Browse files
authored
Remove VEGA_DEBUG (#2957)
Remove this docs after the removal of the VEGA_DEBUG functionality. See elastic/kibana#234477 or ask the Visualization team for more info.
1 parent 7d5e95d commit 6add191

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

explore-analyze/visualize/custom-visualizations-with-vega.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ Learn more about {{kib}} extension, additional **Vega** resources, and examples.
11261126
* [preview] Using the Elastic Map Service in Vega maps
11271127
* Additional tooltip styling
11281128
* Advanced setting to enable URL loading from any domain
1129-
* Debugging support using the {{kib}} inspector or browser console
1129+
* Debugging support using the {{kib}} inspector
11301130
* (Vega only) Expression functions which can update the time range and dashboard filters
11311131

11321132

@@ -1165,7 +1165,7 @@ padding: {
11651165
To learn more, read about [Vega autosize](https://vega.github.io/vega/docs/specification/#autosize) and [Vega-Lite autosize](https://vega.github.io/vega-lite/docs/size.html).
11661166

11671167
::::{note}
1168-
Autosize in Vega-Lite has [several limitations](https://vega.github.io/vega-lite/docs/size.html#limitations) which can affect the height and width of your visualization, but these limitations do not exist in Vega. If you need full control, convert your spec to Vega using the [browser console](#vega-browser-debugging-console) `VEGA_DEBUG.vega_spec` output. To disable these warnings, you can [add extra options to your spec](#vega-additional-configuration-options).
1168+
Autosize in Vega-Lite has [several limitations](https://vega.github.io/vega-lite/docs/size.html#limitations) which can affect the height and width of your visualization, but these limitations do not exist in Vega.
11691169
::::
11701170

11711171

@@ -1472,7 +1472,7 @@ The runtime data is read from the [runtime scope](https://vega.github.io/vega/do
14721472
:screenshot:
14731473
:::
14741474

1475-
To debug more complex specs, access to the `view` variable. For more information, refer to the [Vega browser debugging process](#vega-browser-debugging-console).
1475+
To debug more complex specs, copy the Vega spec from the **Spec** tab and use the [online Vega Editor](https://vega.github.io/editor/) to debug it.
14761476

14771477

14781478
##### Asking for help with a Vega spec [asking-for-help-with-a-vega-spec]
@@ -1487,15 +1487,6 @@ Because of the dynamic nature of the data in {{es}}, it is hard to help you with
14871487
To copy the response, click **Copy to clipboard**. Paste the copied data to [gist.github.com](https://gist.github.com/), possibly with a .json extension. Use the [raw] button, and share that when asking for help.
14881488

14891489

1490-
#### Browser debugging console [vega-browser-debugging-console]
1491-
1492-
[preview] Use browser debugging tools (for example, F12 or Ctrl+Shift+J in Chrome) to inspect the `VEGA_DEBUG` variable:
1493-
1494-
* `view` — Access to the Vega View object. See [Vega Debugging Guide](https://vega.github.io/vega/docs/api/debugging/) on how to inspect data and signals at runtime. For Vega-Lite, `VEGA_DEBUG.view.data('source_0')` gets the pre-transformed data, and `VEGA_DEBUG.view.data('data_0')` gets the encoded data. For Vega, it uses the data name as defined in your Vega spec.
1495-
* `vega_spec` — Vega JSON graph specification after some modifications by {{kib}}. In case of Vega-Lite, this is the output of the Vega-Lite compiler.
1496-
* `vegalite_spec` — If this is a Vega-Lite graph, JSON specification of the graph before Vega-Lite compilation.
1497-
1498-
14991490
#### (Vega only) Expression functions which can update the time range and dashboard filters [vega-expression-functions]
15001491

15011492
{{kib}} has extended the Vega expression language with these functions. These functions will trigger new data to be fetched, which by default will reset Vega signals. To keep signal values set `restoreSignalValuesOnRefresh: true` in the Vega config.

0 commit comments

Comments
 (0)