-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: data bar render from API (#1415)
No specific ticket to close. Just alters the front-end to allow the new data from JSON API to be parsed and turned into a data bar Works in tandem with this deephaven/deephaven-core#4181 from deephaven-core ### Demo Code: ``` from deephaven import new_table from deephaven.column import int_col, double_col, string_col students = new_table([ string_col("Name", ["Andy", "Claire", "Jane", "Steven"]), int_col("StudentID", [1, 2, 3, 4]), int_col("Threshold", [3, 3, 3, 3]), double_col("GPA", [-3.0, 4.0, 3.7, 2.8]), double_col("DirectionalAxis", [-3.0, 4.0, 3.7, 2.8]), double_col("MiddleAxis", [-3.0, 4.0, 3.7, 2.8]), double_col("OverlapPlacement", [-3.0, 4.0, 3.7, 2.8]), double_col("HidePlacement", [-3.0, 4.0, 3.7, 2.8]), double_col("RTLDirection", [-3.0, 4.0, 3.7, 2.8]), double_col("Markers", [-3.0, 4.0, 3.7, 2.8]), double_col("Markers2", [-3.0, 4.0, 3.7, 2.8]), double_col("Gradient", [-3.0, 4.0, 3.7, 2.8]), ]) data_bars = students.format_data_bar(column= "GPA", value_column= "GPA").format_data_bar(column="DirectionalAxis", value_column="DirectionalAxis", axis="directional").format_data_bar(column="MiddleAxis", value_column="MiddleAxis", axis="middle").format_data_bar(column="OverlapPlacement", value_column="OverlapPlacement", value_placement="overlap").format_data_bar(column="HidePlacement", value_column="HidePlacement", value_placement="hide").format_data_bar(column="RTLDirection", value_column="RTLDirection", direction="RTL").format_data_bar(column="Markers", value_column="Markers", marker_column="Threshold").format_data_bar(column="Markers2", value_column="Markers2", marker_column="StudentID", marker_color="#0000FF").format_data_bar(column="Gradient", value_column="Gradient", negative_color=["#FF0000", "#FFFF00"], positive_color=["#FFFF00", "#00FF00"]) ``` ### Expected Output: <img width="1728" alt="image" src="https://github.com/deephaven/deephaven-core/assets/55671206/004372e1-dee1-4632-97f9-73d2e0bb9a98">
- Loading branch information
1 parent
ce51229
commit ee7d1c1
Showing
11 changed files
with
125 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters