-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
67 additions
and
65 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Core Component | ||
|
||
The `GalaxyCharts` core component is used to embed a JavaScript-based visualization by placing the visualization code within its `#default` slot. This component parses static `config` options and the XML visualization wrapper to render both the viewport and input form. | ||
|
||
```vue | ||
<script setup> | ||
import { GalaxyCharts } from "galaxy-charts"; | ||
// Configuration to override default settings | ||
const config = { | ||
dataset_url: "MY_DATASET_URL", | ||
settings: { | ||
setting_text: "MY_TEST_SETTING", | ||
setting_boolean: true, | ||
}, | ||
}; | ||
// XML wrapper for your visualization | ||
const xml = "MY_VISUALIZATION.xml"; | ||
</script> | ||
<template> | ||
<GalaxyCharts :config="config" :xml="xml"> | ||
<template #default="{ datasetId, datasetUrl, root, settings, specs, tracks }"> | ||
<!-- Place your plugin code here! --> | ||
</template> | ||
</GalaxyCharts> | ||
</template> | ||
``` | ||
|
||
## Overview of Slot Values | ||
|
||
| Variable | Description | | ||
|----------|-------------| | ||
|**datasetId**| The ID of the main dataset to be visualized. Every visualization requires a primary dataset, although additional datasets can be added later if needed.| | ||
|**datasetUrl**| The URL of the dataset to be visualized. The entire dataset may be requested for visualization, or only parts/metadata may be retrieved via the Galaxy API.| | ||
|**root**| The proxy route to the Galaxy server (default is '/').| | ||
|**settings**| Configuration settings specific to the visualization, as declared in the XML wrapper.| | ||
|**specs**| Static specification values defined in the XML wrapper.| | ||
|**tracks**| Track configuration values for the visualization, as specified in the XML wrapper.| |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Available Sections | ||
# Sections | ||
|
||
## Settings Section | ||
|
||
|