Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vega visualization renderer #81606

Merged
merged 5 commits into from
Oct 29, 2020
Merged

Conversation

sulemanof
Copy link
Contributor

@sulemanof sulemanof commented Oct 26, 2020

Summary

Part of #46801

  • Implement own renderer for Vega visualization.
  • lazy load VegaVisComponent, VegaVisEditor and VegaDataInspector components
  • Implement toExpressionAst function for building pipeline.
  • vega_visualization converted into typescript

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@sulemanof sulemanof added the Feature:Vega Vega visualizations label Oct 26, 2020
# Conflicts:
#	src/plugins/vis_type_vega/public/vega_fn.ts
@sulemanof sulemanof mentioned this pull request Oct 26, 2020
13 tasks
@sulemanof sulemanof added release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.11.0 v8.0.0 labels Oct 26, 2020
@sulemanof sulemanof marked this pull request as ready for review October 26, 2020 14:16
@sulemanof sulemanof requested a review from a team October 26, 2020 14:16
@sulemanof sulemanof requested a review from a team as a code owner October 26, 2020 14:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
visTypeVega 80 92 +12

async chunk count

id before after diff
visTypeVega 4 7 +3

async chunks size

id before after diff
visTypeVega 1.4MB 1.5MB +95.3KB

distributable file count

id before after diff
default 48109 48117 +8
oss 28592 28600 +8

page load bundle size

id before after diff
visTypeVega 135.4KB 63.3KB -72.1KB
visualizations 272.2KB 272.1KB -84.0B
total -72.2KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

}
await this._vegaView.init();
await this.vegaView?.init();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here should be await this.vegaView!.init(); I prefer to see error if for some reasons this.vegaView is null. But not sure that this case is possible

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't run locally but the SASS LGTM

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanx @sulemanof ❤️

@sulemanof sulemanof merged commit 28a726f into elastic:master Oct 29, 2020
@sulemanof sulemanof deleted the feat/vega_renderer branch October 29, 2020 11:51
sulemanof added a commit to sulemanof/kibana that referenced this pull request Oct 29, 2020
* Create vega to_ast function

* Create a custom vega renderer

* Fix sass error

Co-authored-by: Kibana Machine <[email protected]>
sulemanof added a commit that referenced this pull request Oct 29, 2020
* Create vega to_ast function

* Create a custom vega renderer

* Fix sass error

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Vega Vega visualizations release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants