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

[Backport 2.16] [VisBuilder] Add Capability to generate dynamic vega #7410

Merged
merged 1 commit into from
Jul 23, 2024

Commits on Jul 23, 2024

  1. [VisBuilder] Add Capability to generate dynamic vega (#7288)

    * [VisBuilder] Add Capability to generate dynamic vega
    
    In this PR, we add the capability for Visbuilder to generate dynamic Vega and Vega-Lite
    specifications based on user settings and aggregation configurations.
    
    * developed functions buildVegaSpecViaVega and buildVegaSpecViaVegaLite
    that can create either Vega or Vega-Lite specifications depending on the complexity
    of the visualization.
    * added VegaSpec and VegaLiteSpec interfaces to provide better type checking
    * broken down the specification building into smaller, reusable components
    (like buildEncoding, buildMark, buildLegend, buildTooltip) to make the code
    more maintainable and easier to extend.
    * added flattenDataHandler to prepare and transform data for use in Vega visualizations
    
    Issue Resolve
    #7067
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * fix PR comments
    
    * update file and functions names
    * fix type errors
    * fix area chart
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * add unit tests
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * enable embeddable for useVega
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * remove buildVegaScales due to split it to smaller modules
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * fix date for vega
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * fix test
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    
    * Changeset file for PR #7288 created/updated
    
    ---------
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
    (cherry picked from commit faaa45c)
    Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Configuration menu
    Copy the full SHA
    a12f4f7 View commit details
    Browse the repository at this point in the history