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

[VisBuilder] Add Capability to generate dynamic vega #7288

Merged
merged 9 commits into from
Jul 23, 2024

Commits on Jul 19, 2024

  1. [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
    opensearch-project#7067
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    fcecc88 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. fix PR comments

    * update file and functions names
    * fix type errors
    * fix area chart
    
    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    c37996e View commit details
    Browse the repository at this point in the history
  2. add unit tests

    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    f2ac5cf View commit details
    Browse the repository at this point in the history
  3. enable embeddable for useVega

    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    e695b45 View commit details
    Browse the repository at this point in the history
  4. remove buildVegaScales due to split it to smaller modules

    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    745baf2 View commit details
    Browse the repository at this point in the history
  5. fix date for vega

    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ae9e15b View commit details
    Browse the repository at this point in the history
  6. fix test

    Signed-off-by: Anan Zhuang <ananzh@amazon.com>
    ananzh committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    3162063 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    677c3eb View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Configuration menu
    Copy the full SHA
    9249067 View commit details
    Browse the repository at this point in the history