visualifyjs 2.5.3-2.dev → 2.5.3-9-dev
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of visualifyjs might be problematic. Click here for more details.
- package/.github/workflows/{static.yml.bak → build.yaml} +51 -51
- package/LICENSE +674 -674
- package/README.md +40 -58
- package/config-overrides.js +31 -31
- package/dist/visualify.js +3 -3
- package/docs/CLI.md +15 -0
- package/docs/{docs/README.md → README.md} +41 -65
- package/docs/{docs/Rechart → Rechart}/bar.md +190 -190
- package/docs/{docs/Rechart → Rechart}/funnel.md +193 -241
- package/docs/{docs/Rechart → Rechart}/line.md +355 -355
- package/docs/{docs/Rechart → Rechart}/pie.md +225 -225
- package/docs/{docs/Rechart → Rechart}/radar.md +253 -253
- package/docs/{docs/_404.md → _404.md} +51 -51
- package/docs/{docs/_coverpage.md → _coverpage.md} +11 -11
- package/docs/{docs/_sidebar.md → _sidebar.md} +42 -44
- package/docs/{docs/components → components}/dotBio.md +34 -34
- package/docs/{docs/components → components}/echart.md +82 -82
- package/docs/{docs/components → components}/html.md +34 -34
- package/docs/{docs/components → components}/macaron.md +145 -145
- package/docs/components/markdown.md +0 -0
- package/docs/{docs/components → components}/more.md +142 -142
- package/docs/{docs/components → components}/plotly.md +62 -62
- package/docs/{docs/components → components}/scatterL.md +70 -70
- package/docs/{docs/components → components}/visium.md +56 -56
- package/docs/{docs/configuration.md → configuration.md} +123 -121
- package/docs/{docs/deploy.md → deploy.md} +23 -31
- package/docs/index.html +70 -70
- package/docs/log.md +1 -0
- package/docs/manifest.json +23 -23
- package/docs/{docs/more-pages.md → more-pages.md} +23 -23
- package/docs/{docs/quickstart.md → quickstart.md} +115 -124
- package/docs/{docs/rechart-attributes.md → rechart-attributes.md} +74 -74
- package/docs/{docs/rechart-basic-usage.md → rechart-basic-usage.md} +162 -162
- package/docs/static/css/fluff-stuff.css +169 -169
- package/docs/static/css/font-awesome.min.css +4 -4
- package/docs/static/css/visualify.css +25 -25
- package/docs/static/js/configuration.js +448 -448
- package/docs/static/js/visualify.js +24 -23
- package/docs/theme.md +3 -0
- package/package.json +74 -83
- package/rollup.config.mjs +75 -75
- package/src/_css/404.css +115 -115
- package/src/_css/App.css +37 -37
- package/src/_css/autoSuggestion.css +26 -26
- package/src/_css/circular-progress.css +32 -32
- package/src/_css/index.css +36 -36
- package/src/_css/modern.css +24 -24
- package/src/_media/corner.svg +8 -8
- package/src/_media/download.svg +3 -3
- package/src/_media/logo.svg +14 -14
- package/src/_test/App.test.js +15 -15
- package/src/_utils/reportWebVitals.js +13 -13
- package/src/core/appContext.js +27 -27
- package/src/core/components/Scatter.js +188 -188
- package/src/core/components/ScatterBio.js +572 -572
- package/src/core/components/VisiumPlot.js +165 -165
- package/src/core/components/browser.js +42 -42
- package/src/core/components/dotplot.js +413 -413
- package/src/core/components/html.js +29 -29
- package/src/core/components/list.js +178 -178
- package/src/core/components/macaron.js +201 -201
- package/src/core/components/markdown.js +56 -56
- package/src/core/components/parser.scatterBio.js +579 -587
- package/src/core/components/ratio.js +80 -80
- package/src/core/components/scatterL.js +173 -173
- package/src/core/components/searchbar.js +131 -131
- package/src/core/components/selection.js +193 -193
- package/src/core/components/timeline.js +281 -281
- package/src/core/components/visium.js +97 -97
- package/src/core/fetch/condfetch.js +82 -82
- package/src/core/fetch/fetch.js +92 -92
- package/src/core/fetch/json.js +29 -29
- package/src/core/fetch/vfetch.js +42 -42
- package/src/core/liveEditor.js +44 -44
- package/src/core/modules/codeEditorWithPreview.js +104 -104
- package/src/core/modules/echarts/common.js +20 -20
- package/src/core/modules/echarts/presetHandler.js +41 -41
- package/src/core/modules/echarts/presets/esodev.chromium.js +172 -172
- package/src/core/modules/echarts/presets/esodev.codex.js +130 -130
- package/src/core/modules/echarts/presets/esodev.visium.js +123 -123
- package/src/core/modules/echarts/presets/mmtrbc.js +186 -186
- package/src/core/modules/echarts.js +71 -71
- package/src/core/modules/echartsUtils.js +43 -43
- package/src/core/modules/echartswitcher.js +152 -152
- package/src/core/modules/replotly/presetHandler.js +24 -24
- package/src/core/modules/replotly/presets/minimum.js +18 -18
- package/src/core/modules/replotly/presets/mmtrbc.dot.js +114 -114
- package/src/core/modules/replotly/presets/mmtrbc.violin.js +100 -100
- package/src/core/modules/replotly.js +71 -71
- package/src/core/pages/404.js +50 -50
- package/src/core/pages/error.js +27 -27
- package/src/core/pages/jsonPage.js +62 -62
- package/src/core/pages/loading.js +44 -44
- package/src/core/parser/echart.data.js +183 -183
- package/src/core/parser/echart.features.js +125 -125
- package/src/core/parser/echart.general.js +143 -147
- package/src/core/parser/echart.hilbert.js +57 -57
- package/src/core/parser/echart.parser.js +210 -210
- package/src/core/parser/echart.series.js +67 -67
- package/src/core/parser/echart.types.js +76 -76
- package/src/core/parser/plotly.config.js +10 -10
- package/src/core/parser/plotly.data.js +132 -132
- package/src/core/parser/plotly.layout.js +9 -9
- package/src/core/parser/plotly.violin.js +18 -18
- package/src/core/recharts.js +62 -62
- package/src/core/router/alias.js +49 -49
- package/src/core/router/jsonRouter.js +31 -31
- package/src/core/themes/modern.js +32 -32
- package/src/core/themes/themeSelector.js +33 -33
- package/src/core/visualify.js +47 -47
- package/src/core/widgets/circularProgress.js +23 -23
- package/src/core/widgets/controller.js +83 -83
- package/src/core/widgets/errorBoundary.js +36 -36
- package/src/core/widgets/footer.js +177 -177
- package/src/core/widgets/header.js +234 -234
- package/src/core/widgets/layout/Grid.js +31 -31
- package/src/core/widgets/layout.js +36 -36
- package/src/core/widgets/mapping.js +42 -42
- package/src/index.js +62 -62
- package/src/setupTests.js +5 -5
- package/docs/docs/CLI.md +0 -34
- package/docs/docs/Rechart/scatter.md +0 -298
- package/docs/docs/log.md +0 -9
- package/docs/docs/static/logo/favicon.ico +0 -0
- package/docs/docs/static/logo/logo_128x128.png +0 -0
- package/docs/docs/static/logo/logo_192x192.png +0 -0
- package/docs/docs/static/logo/logo_256x256.png +0 -0
- package/docs/docs/static/logo/logo_512x512.png +0 -0
- package/docs/docs/static/logo/logo_64x64.png +0 -0
- package/docs/docs/theme.md +0 -5
- /package/docs/{docs/Rechart → Rechart}/geo.md +0 -0
- /package/docs/{docs/Rechart → Rechart}/liquidfill.md +0 -0
- /package/docs/{docs/Rechart → Rechart}/polar.md +0 -0
- /package/docs/{docs/Rechart → Rechart}/sankey.md +0 -0
- /package/docs/{docs/Rechart/sunburst.md → Rechart/scatter.md} +0 -0
- /package/docs/{docs/Rechart/tree.md → Rechart/sunburst.md} +0 -0
- /package/docs/{docs/Rechart/wordcloud.md → Rechart/tree.md} +0 -0
- /package/docs/{docs/components/markdown.md → Rechart/wordcloud.md} +0 -0
- /package/docs/{docs/static → static}/_images/deploy-github-pages.png +0 -0
@@ -1,62 +1,62 @@
|
|
1
|
-
# Plotly Component
|
2
|
-
|
3
|
-
The Plotly component is used to display a plotly plot on the page.
|
4
|
-
|
5
|
-
## Properties
|
6
|
-
|
7
|
-
The Plotly component has the following properties:
|
8
|
-
|
9
|
-
- `type` (string): The type of the component, in this case `Plotly`.
|
10
|
-
- `id` (string): The unique identifier of the component.
|
11
|
-
- `row` (int): The row in which the component is to be displayed.
|
12
|
-
- `col` (int): The column in which the component is to be displayed.
|
13
|
-
- `rowspan` (int): The number of rows the component is to span.
|
14
|
-
- `colspan` (int): The number of columns the component is to span.
|
15
|
-
- `settings` (object): The settings of the component.
|
16
|
-
- `parser` (object): The parser of the component.
|
17
|
-
- `trigger` (object): The trigger of the component.
|
18
|
-
|
19
|
-
### settings Properties
|
20
|
-
|
21
|
-
The `settings` object has the following properties:
|
22
|
-
|
23
|
-
- `preset` (string): The preset of the component.
|
24
|
-
- `ignoreEmptyData` (boolean): Whether to ignore empty data or not.
|
25
|
-
|
26
|
-
### parser Properties
|
27
|
-
|
28
|
-
The `parser` object has the following properties:
|
29
|
-
|
30
|
-
- `sources` (array): The sources of the component.
|
31
|
-
- `name` (string): The name of the trigger.
|
32
|
-
- `url` (string): The URL of the data.
|
33
|
-
- `responseKey` (string): The response key of the component.
|
34
|
-
- `exclude` (array): The data to be excluded.
|
35
|
-
- `type` (string): The type of the component.
|
36
|
-
|
37
|
-
### Example
|
38
|
-
|
39
|
-
```json
|
40
|
-
{
|
41
|
-
"id": "mmtrbc_tsne",
|
42
|
-
"type": "Plotly",
|
43
|
-
"col": 2,
|
44
|
-
"rowspan": 3,
|
45
|
-
"settings": {
|
46
|
-
"preset": "mmtrbc",
|
47
|
-
"ignoreEmptyData": true
|
48
|
-
},
|
49
|
-
"parser": {
|
50
|
-
"sources": [{
|
51
|
-
"name": "metadata",
|
52
|
-
"url": "<your-backend-url>"
|
53
|
-
}, {
|
54
|
-
"name": "gene",
|
55
|
-
"url": "<your-backend-url>",
|
56
|
-
"responseKey": "gene"
|
57
|
-
}],
|
58
|
-
"exclude": ["BC-Mes", "BC-NE", "BC-Im"],
|
59
|
-
"type": "scatter"
|
60
|
-
}
|
61
|
-
}
|
62
|
-
```
|
1
|
+
# Plotly Component
|
2
|
+
|
3
|
+
The Plotly component is used to display a plotly plot on the page.
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
The Plotly component has the following properties:
|
8
|
+
|
9
|
+
- `type` (string): The type of the component, in this case `Plotly`.
|
10
|
+
- `id` (string): The unique identifier of the component.
|
11
|
+
- `row` (int): The row in which the component is to be displayed.
|
12
|
+
- `col` (int): The column in which the component is to be displayed.
|
13
|
+
- `rowspan` (int): The number of rows the component is to span.
|
14
|
+
- `colspan` (int): The number of columns the component is to span.
|
15
|
+
- `settings` (object): The settings of the component.
|
16
|
+
- `parser` (object): The parser of the component.
|
17
|
+
- `trigger` (object): The trigger of the component.
|
18
|
+
|
19
|
+
### settings Properties
|
20
|
+
|
21
|
+
The `settings` object has the following properties:
|
22
|
+
|
23
|
+
- `preset` (string): The preset of the component.
|
24
|
+
- `ignoreEmptyData` (boolean): Whether to ignore empty data or not.
|
25
|
+
|
26
|
+
### parser Properties
|
27
|
+
|
28
|
+
The `parser` object has the following properties:
|
29
|
+
|
30
|
+
- `sources` (array): The sources of the component.
|
31
|
+
- `name` (string): The name of the trigger.
|
32
|
+
- `url` (string): The URL of the data.
|
33
|
+
- `responseKey` (string): The response key of the component.
|
34
|
+
- `exclude` (array): The data to be excluded.
|
35
|
+
- `type` (string): The type of the component.
|
36
|
+
|
37
|
+
### Example
|
38
|
+
|
39
|
+
```json
|
40
|
+
{
|
41
|
+
"id": "mmtrbc_tsne",
|
42
|
+
"type": "Plotly",
|
43
|
+
"col": 2,
|
44
|
+
"rowspan": 3,
|
45
|
+
"settings": {
|
46
|
+
"preset": "mmtrbc",
|
47
|
+
"ignoreEmptyData": true
|
48
|
+
},
|
49
|
+
"parser": {
|
50
|
+
"sources": [{
|
51
|
+
"name": "metadata",
|
52
|
+
"url": "<your-backend-url>"
|
53
|
+
}, {
|
54
|
+
"name": "gene",
|
55
|
+
"url": "<your-backend-url>",
|
56
|
+
"responseKey": "gene"
|
57
|
+
}],
|
58
|
+
"exclude": ["BC-Mes", "BC-NE", "BC-Im"],
|
59
|
+
"type": "scatter"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
```
|
@@ -1,70 +1,70 @@
|
|
1
|
-
# ScatterL Components
|
2
|
-
|
3
|
-
The ScatterL component is a scatter plot that is used to visualize the data in
|
4
|
-
2D. It is a part of the Plotly library and is used to visualize the data in 2D.
|
5
|
-
The ScatterL component is used to visualize the data in 2D.
|
6
|
-
|
7
|
-
The ScatterL component is designed for a specified data Format, like R-tree, to
|
8
|
-
visualize a large data set in 2D.
|
9
|
-
|
10
|
-
## Requirements
|
11
|
-
|
12
|
-
The ScatterL component requires the specified API to fetch the data. Currently,
|
13
|
-
the ScatterL component supports the API for fetching the data - in the format of
|
14
|
-
JSON, - and it need API to consist as
|
15
|
-
`your-backend-server-url/xxx/<x-min>/<y-min>/<x-max>/<y-max>`
|
16
|
-
|
17
|
-
We will provide an example of the backend to show you how to implement our
|
18
|
-
customized Rtree API.
|
19
|
-
|
20
|
-
## Properties
|
21
|
-
|
22
|
-
The ScatterL component has the following properties:
|
23
|
-
|
24
|
-
- `type` (string): The type of the component, in this case `ScatterL`.
|
25
|
-
- `id` (string): The unique identifier of the component.
|
26
|
-
- `row` (int): The row in which the component is to be displayed.
|
27
|
-
- `col` (int): The column in which the component is to be displayed.
|
28
|
-
- `rowspan` (int): The number of rows the component is to span.
|
29
|
-
- `config` (object): The configuration of the component.
|
30
|
-
|
31
|
-
### config Properties
|
32
|
-
|
33
|
-
The `config` object has the following properties:
|
34
|
-
|
35
|
-
- `merge` (boolean): Whether to merge the data or not.
|
36
|
-
- `startup_msg` (string): The message to be displayed when the component is
|
37
|
-
started.
|
38
|
-
- `size` (object): The size of the component.
|
39
|
-
- `width` (int): The width of the component.
|
40
|
-
- `height` (int): The height of the component.
|
41
|
-
- `dotsize` (object): The size of the dots in the scatter plot.
|
42
|
-
- `dotFactor` (int): The factor by which the dot size is to be multiplied.
|
43
|
-
- `min` (int): The minimum size of the dot.
|
44
|
-
- `max` (int): The maximum size of the dot.
|
45
|
-
- `colourby` (string): The property by which the dots are to be coloured.
|
46
|
-
- `exclusion` (array): The properties to be excluded.
|
47
|
-
- `api` (object): The API to be used to fetch the data.
|
48
|
-
- `metadata` (object): The metadata API.
|
49
|
-
- `href` (string): The URL of the metadata API.
|
50
|
-
- `val` (string): The value of the metadata API.
|
51
|
-
- `gene` (object): The gene API.
|
52
|
-
- `href` (string): The URL of the gene API.
|
53
|
-
- `val` (string): The value of the gene API.
|
54
|
-
- `dep` (string): The dependent property of the gene API.
|
55
|
-
- `mapping` (object): The mapping of the data.
|
56
|
-
- `api` (object): The API to be used for mapping.
|
57
|
-
- Example:
|
58
|
-
- `ENS (S): 'ens_iter_2'` (string): Maps ENS (S) to endo_iter_2 API.
|
59
|
-
- `IM (S): 'im_iter_2'` (string): Maps IM (S) to im_iter_2 API.
|
60
|
-
- `MES (S): 'mes_iter_2'` (string): Maps MES (S) to mes_iter_2 API.
|
61
|
-
- `axis` (object): The axis to be used for mapping.
|
62
|
-
- `x: X_Coord` (string): Maps x-axis to specified value name.
|
63
|
-
- `y: Y_Coord` (string): Maps y-axis to specified value name.
|
64
|
-
- `extra` (object): The extra properties.
|
65
|
-
- Example:
|
66
|
-
- `Stage : Stage` (string): Mapes the Stage to the stage property.
|
67
|
-
- `MT : MT` (string): Maps the MT to the MT property.
|
68
|
-
- `Gene : Gene` (string): Maps the Gene to the gene property.
|
69
|
-
- `Cell_Type : Cell_Type` (string): Maps the Cell_Type to the cell type property.
|
70
|
-
- `Cell_ID : Cell_ID` (string): Maps the Cell_ID to the cell ID property.
|
1
|
+
# ScatterL Components
|
2
|
+
|
3
|
+
The ScatterL component is a scatter plot that is used to visualize the data in
|
4
|
+
2D. It is a part of the Plotly library and is used to visualize the data in 2D.
|
5
|
+
The ScatterL component is used to visualize the data in 2D.
|
6
|
+
|
7
|
+
The ScatterL component is designed for a specified data Format, like R-tree, to
|
8
|
+
visualize a large data set in 2D.
|
9
|
+
|
10
|
+
## Requirements
|
11
|
+
|
12
|
+
The ScatterL component requires the specified API to fetch the data. Currently,
|
13
|
+
the ScatterL component supports the API for fetching the data - in the format of
|
14
|
+
JSON, - and it need API to consist as
|
15
|
+
`your-backend-server-url/xxx/<x-min>/<y-min>/<x-max>/<y-max>`
|
16
|
+
|
17
|
+
We will provide an example of the backend to show you how to implement our
|
18
|
+
customized Rtree API.
|
19
|
+
|
20
|
+
## Properties
|
21
|
+
|
22
|
+
The ScatterL component has the following properties:
|
23
|
+
|
24
|
+
- `type` (string): The type of the component, in this case `ScatterL`.
|
25
|
+
- `id` (string): The unique identifier of the component.
|
26
|
+
- `row` (int): The row in which the component is to be displayed.
|
27
|
+
- `col` (int): The column in which the component is to be displayed.
|
28
|
+
- `rowspan` (int): The number of rows the component is to span.
|
29
|
+
- `config` (object): The configuration of the component.
|
30
|
+
|
31
|
+
### config Properties
|
32
|
+
|
33
|
+
The `config` object has the following properties:
|
34
|
+
|
35
|
+
- `merge` (boolean): Whether to merge the data or not.
|
36
|
+
- `startup_msg` (string): The message to be displayed when the component is
|
37
|
+
started.
|
38
|
+
- `size` (object): The size of the component.
|
39
|
+
- `width` (int): The width of the component.
|
40
|
+
- `height` (int): The height of the component.
|
41
|
+
- `dotsize` (object): The size of the dots in the scatter plot.
|
42
|
+
- `dotFactor` (int): The factor by which the dot size is to be multiplied.
|
43
|
+
- `min` (int): The minimum size of the dot.
|
44
|
+
- `max` (int): The maximum size of the dot.
|
45
|
+
- `colourby` (string): The property by which the dots are to be coloured.
|
46
|
+
- `exclusion` (array): The properties to be excluded.
|
47
|
+
- `api` (object): The API to be used to fetch the data.
|
48
|
+
- `metadata` (object): The metadata API.
|
49
|
+
- `href` (string): The URL of the metadata API.
|
50
|
+
- `val` (string): The value of the metadata API.
|
51
|
+
- `gene` (object): The gene API.
|
52
|
+
- `href` (string): The URL of the gene API.
|
53
|
+
- `val` (string): The value of the gene API.
|
54
|
+
- `dep` (string): The dependent property of the gene API.
|
55
|
+
- `mapping` (object): The mapping of the data.
|
56
|
+
- `api` (object): The API to be used for mapping.
|
57
|
+
- Example:
|
58
|
+
- `ENS (S): 'ens_iter_2'` (string): Maps ENS (S) to endo_iter_2 API.
|
59
|
+
- `IM (S): 'im_iter_2'` (string): Maps IM (S) to im_iter_2 API.
|
60
|
+
- `MES (S): 'mes_iter_2'` (string): Maps MES (S) to mes_iter_2 API.
|
61
|
+
- `axis` (object): The axis to be used for mapping.
|
62
|
+
- `x: X_Coord` (string): Maps x-axis to specified value name.
|
63
|
+
- `y: Y_Coord` (string): Maps y-axis to specified value name.
|
64
|
+
- `extra` (object): The extra properties.
|
65
|
+
- Example:
|
66
|
+
- `Stage : Stage` (string): Mapes the Stage to the stage property.
|
67
|
+
- `MT : MT` (string): Maps the MT to the MT property.
|
68
|
+
- `Gene : Gene` (string): Maps the Gene to the gene property.
|
69
|
+
- `Cell_Type : Cell_Type` (string): Maps the Cell_Type to the cell type property.
|
70
|
+
- `Cell_ID : Cell_ID` (string): Maps the Cell_ID to the cell ID property.
|
@@ -1,57 +1,57 @@
|
|
1
|
-
# Visium Component
|
2
|
-
|
3
|
-
The Visium component is used to display the Visium data on the page.
|
4
|
-
|
5
|
-
## Properties
|
6
|
-
|
7
|
-
The Visium component has the following properties:
|
8
|
-
|
9
|
-
- `type` (string): The type of the component, in this case `Visium`.
|
10
|
-
- `id` (string): The unique identifier of the component.
|
11
|
-
- `row` (int): The row in which the component is to be displayed.
|
12
|
-
- `col` (int): The column in which the component is to be displayed.
|
13
|
-
- `rowspan` (int): The number of rows the component is to span.
|
14
|
-
- `startup_msg` (string): The startup message of the component.
|
15
|
-
- `meta` (string): The metadata API of the component.
|
16
|
-
- `simpleload` (boolean): Whether to load the data simply or not.
|
17
|
-
- `metaval` (string): The metadata variable name we want to use.
|
18
|
-
- `gene` (string): The gene API.
|
19
|
-
- `geneval` (string): The gene variable name we want to use.
|
20
|
-
- `image` (string): The image API.
|
21
|
-
- `cellval` (string): The celltype variable name we want to use.
|
22
|
-
- `axis_mapping` (object): The axis mapping of the component.
|
23
|
-
- `x: X_Coord` (string): Maps the X_Coord to the x-axis.
|
24
|
-
- `y: Y_Coord` (string): Maps the Y_Coord to the y-axis.
|
25
|
-
- `extra` (object): The extra properties.
|
26
|
-
- Example:
|
27
|
-
- `BC : BC` (string): Maps the BC to the BC property.
|
28
|
-
- `SB-1 : SB-1` (string): Maps the SB-1 to the SB-1 property.
|
29
|
-
|
30
|
-
|
31
|
-
### Example
|
32
|
-
|
33
|
-
```json
|
34
|
-
{
|
35
|
-
"id": "visium_scatter2d",
|
36
|
-
"type": "Visium",
|
37
|
-
"row": 1,
|
38
|
-
"col": 2,
|
39
|
-
"rowspan": 3,
|
40
|
-
"startup_msg": "Section",
|
41
|
-
"meta": "<your-api-for-metadata>",
|
42
|
-
"simpleload": false,
|
43
|
-
"metaval": "visium_section",
|
44
|
-
"gene": "<your-api-for-gene-data>",
|
45
|
-
"geneval": "visium_gene",
|
46
|
-
"image": "<your-api-for-image>",
|
47
|
-
"cellval": "visium_celltype",
|
48
|
-
"axis_mapping": {
|
49
|
-
"x": "X_Coord",
|
50
|
-
"y": "Y_Coord",
|
51
|
-
"extra": {
|
52
|
-
"BC": "BC",
|
53
|
-
"SB-1": "SB-1",
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
1
|
+
# Visium Component
|
2
|
+
|
3
|
+
The Visium component is used to display the Visium data on the page.
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
The Visium component has the following properties:
|
8
|
+
|
9
|
+
- `type` (string): The type of the component, in this case `Visium`.
|
10
|
+
- `id` (string): The unique identifier of the component.
|
11
|
+
- `row` (int): The row in which the component is to be displayed.
|
12
|
+
- `col` (int): The column in which the component is to be displayed.
|
13
|
+
- `rowspan` (int): The number of rows the component is to span.
|
14
|
+
- `startup_msg` (string): The startup message of the component.
|
15
|
+
- `meta` (string): The metadata API of the component.
|
16
|
+
- `simpleload` (boolean): Whether to load the data simply or not.
|
17
|
+
- `metaval` (string): The metadata variable name we want to use.
|
18
|
+
- `gene` (string): The gene API.
|
19
|
+
- `geneval` (string): The gene variable name we want to use.
|
20
|
+
- `image` (string): The image API.
|
21
|
+
- `cellval` (string): The celltype variable name we want to use.
|
22
|
+
- `axis_mapping` (object): The axis mapping of the component.
|
23
|
+
- `x: X_Coord` (string): Maps the X_Coord to the x-axis.
|
24
|
+
- `y: Y_Coord` (string): Maps the Y_Coord to the y-axis.
|
25
|
+
- `extra` (object): The extra properties.
|
26
|
+
- Example:
|
27
|
+
- `BC : BC` (string): Maps the BC to the BC property.
|
28
|
+
- `SB-1 : SB-1` (string): Maps the SB-1 to the SB-1 property.
|
29
|
+
|
30
|
+
|
31
|
+
### Example
|
32
|
+
|
33
|
+
```json
|
34
|
+
{
|
35
|
+
"id": "visium_scatter2d",
|
36
|
+
"type": "Visium",
|
37
|
+
"row": 1,
|
38
|
+
"col": 2,
|
39
|
+
"rowspan": 3,
|
40
|
+
"startup_msg": "Section",
|
41
|
+
"meta": "<your-api-for-metadata>",
|
42
|
+
"simpleload": false,
|
43
|
+
"metaval": "visium_section",
|
44
|
+
"gene": "<your-api-for-gene-data>",
|
45
|
+
"geneval": "visium_gene",
|
46
|
+
"image": "<your-api-for-image>",
|
47
|
+
"cellval": "visium_celltype",
|
48
|
+
"axis_mapping": {
|
49
|
+
"x": "X_Coord",
|
50
|
+
"y": "Y_Coord",
|
51
|
+
"extra": {
|
52
|
+
"BC": "BC",
|
53
|
+
"SB-1": "SB-1",
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
57
|
```
|
@@ -1,121 +1,123 @@
|
|
1
|
-
# Configuration
|
2
|
-
|
3
|
-
You can configure Visualify by defining `window.$visualify` or `$visualify` as
|
4
|
-
an object:
|
5
|
-
|
6
|
-
```js
|
7
|
-
<script>
|
8
|
-
window.$visualify = {
|
9
|
-
mode: 'pages',
|
10
|
-
// ...
|
11
|
-
}
|
12
|
-
</script>
|
13
|
-
```
|
14
|
-
|
15
|
-
Or you can initialize `$visualify` as a **Chart Module**:
|
16
|
-
|
17
|
-
```js
|
18
|
-
<script>
|
19
|
-
$visualify = {
|
20
|
-
mode: 'charts',
|
21
|
-
}
|
22
|
-
|
23
|
-
new $visualify.Recharts({...}).mount('#chart')
|
24
|
-
new $visualify.LiveEditor({...}).mount('#ex11');
|
25
|
-
</script>
|
26
|
-
```
|
27
|
-
|
28
|
-
## el
|
29
|
-
|
30
|
-
- Type: `String`
|
31
|
-
- Default: `'#root'`
|
32
|
-
|
33
|
-
The DOM element to be mounted on initialization. It can be a CSS selector string
|
34
|
-
or an actual
|
35
|
-
[HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement).
|
36
|
-
|
37
|
-
```js
|
38
|
-
window.$visualify = {
|
39
|
-
el: '#root',
|
40
|
-
};
|
41
|
-
```
|
42
|
-
|
43
|
-
## mode
|
44
|
-
|
45
|
-
- Type: `String`
|
46
|
-
- Default: `'pages'`
|
47
|
-
- Options: `'pages'`, `'charts'`
|
48
|
-
|
49
|
-
The mode of Visualify. If you want to use Visualify as a chart module, you can
|
50
|
-
set `mode` to `'charts'`.
|
51
|
-
|
52
|
-
```js
|
53
|
-
window.$visualify = {
|
54
|
-
mode: 'charts',
|
55
|
-
};
|
56
|
-
```
|
57
|
-
|
58
|
-
## theme
|
59
|
-
|
60
|
-
- Type: `String`
|
61
|
-
- Default: `'modern'`
|
62
|
-
- Options: `'modern'`, `'classic'`
|
63
|
-
|
64
|
-
The theme of Visualify. The default theme is `'modern'`. Themes usually make
|
65
|
-
changes to the layout and components of the page. Built-in different themes
|
66
|
-
provide different typesetting and functions, please choose different themes
|
67
|
-
according to different needs, you can also replace a single css to change the
|
68
|
-
style.
|
69
|
-
|
70
|
-
```js
|
71
|
-
window.$visualify = {
|
72
|
-
theme: 'modern',
|
73
|
-
};
|
74
|
-
```
|
75
|
-
|
76
|
-
For more themes, please refer to [Themes](themes.md)
|
77
|
-
|
78
|
-
## homepage
|
79
|
-
|
80
|
-
- Type: `String`
|
81
|
-
- Default: `'home.json'`
|
82
|
-
|
83
|
-
The `home.json` in your docs folder will be treated as the homepage for your
|
84
|
-
website, but sometimes you may need to serve another file as your homepage.
|
85
|
-
|
86
|
-
```js
|
87
|
-
window.$visualify = {
|
88
|
-
homepage: 'home',
|
89
|
-
|
90
|
-
// Or use the json in your repo
|
91
|
-
homepage: 'https://raw.githubusercontent.com/leolihao/visualify/master/docs/home.json',
|
92
|
-
}
|
93
|
-
```
|
94
|
-
|
95
|
-
## repo
|
96
|
-
|
97
|
-
- Type: `String`
|
98
|
-
|
99
|
-
Configure the repository url, or a string of `username/repo`, to add the
|
100
|
-
[GitHub Corner](http://tholman.com/github-corners/) widget in the top right
|
101
|
-
corner of the site.
|
102
|
-
|
103
|
-
```js
|
104
|
-
window.$docsify = {
|
105
|
-
repo: '
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
1
|
+
# Configuration
|
2
|
+
|
3
|
+
You can configure Visualify by defining `window.$visualify` or `$visualify` as
|
4
|
+
an object:
|
5
|
+
|
6
|
+
```js
|
7
|
+
<script>
|
8
|
+
window.$visualify = {
|
9
|
+
mode: 'pages',
|
10
|
+
// ...
|
11
|
+
}
|
12
|
+
</script>
|
13
|
+
```
|
14
|
+
|
15
|
+
Or you can initialize `$visualify` as a **Chart Module**:
|
16
|
+
|
17
|
+
```js
|
18
|
+
<script>
|
19
|
+
$visualify = {
|
20
|
+
mode: 'charts',
|
21
|
+
}
|
22
|
+
|
23
|
+
new $visualify.Recharts({...}).mount('#chart')
|
24
|
+
new $visualify.LiveEditor({...}).mount('#ex11');
|
25
|
+
</script>
|
26
|
+
```
|
27
|
+
|
28
|
+
## el
|
29
|
+
|
30
|
+
- Type: `String`
|
31
|
+
- Default: `'#root'`
|
32
|
+
|
33
|
+
The DOM element to be mounted on initialization. It can be a CSS selector string
|
34
|
+
or an actual
|
35
|
+
[HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement).
|
36
|
+
|
37
|
+
```js
|
38
|
+
window.$visualify = {
|
39
|
+
el: '#root',
|
40
|
+
};
|
41
|
+
```
|
42
|
+
|
43
|
+
## mode
|
44
|
+
|
45
|
+
- Type: `String`
|
46
|
+
- Default: `'pages'`
|
47
|
+
- Options: `'pages'`, `'charts'`
|
48
|
+
|
49
|
+
The mode of Visualify. If you want to use Visualify as a chart module, you can
|
50
|
+
set `mode` to `'charts'`.
|
51
|
+
|
52
|
+
```js
|
53
|
+
window.$visualify = {
|
54
|
+
mode: 'charts',
|
55
|
+
};
|
56
|
+
```
|
57
|
+
|
58
|
+
## theme
|
59
|
+
|
60
|
+
- Type: `String`
|
61
|
+
- Default: `'modern'`
|
62
|
+
- Options: `'modern'`, `'classic'`
|
63
|
+
|
64
|
+
The theme of Visualify. The default theme is `'modern'`. Themes usually make
|
65
|
+
changes to the layout and components of the page. Built-in different themes
|
66
|
+
provide different typesetting and functions, please choose different themes
|
67
|
+
according to different needs, you can also replace a single css to change the
|
68
|
+
style.
|
69
|
+
|
70
|
+
```js
|
71
|
+
window.$visualify = {
|
72
|
+
theme: 'modern',
|
73
|
+
};
|
74
|
+
```
|
75
|
+
|
76
|
+
For more themes, please refer to [Themes](themes.md)
|
77
|
+
|
78
|
+
## homepage
|
79
|
+
|
80
|
+
- Type: `String`
|
81
|
+
- Default: `'home.json'`
|
82
|
+
|
83
|
+
The `home.json` in your docs folder will be treated as the homepage for your
|
84
|
+
website, but sometimes you may need to serve another file as your homepage.
|
85
|
+
|
86
|
+
```js
|
87
|
+
window.$visualify = {
|
88
|
+
homepage: 'home',
|
89
|
+
|
90
|
+
// Or use the json in your repo
|
91
|
+
homepage: 'https://raw.githubusercontent.com/leolihao/visualify/master/docs/home.json',
|
92
|
+
}
|
93
|
+
```
|
94
|
+
|
95
|
+
## repo
|
96
|
+
|
97
|
+
- Type: `String`
|
98
|
+
|
99
|
+
Configure the repository url, or a string of `username/repo`, to add the
|
100
|
+
[GitHub Corner](http://tholman.com/github-corners/) widget in the top right
|
101
|
+
corner of the site.
|
102
|
+
|
103
|
+
```js
|
104
|
+
window.$docsify = {
|
105
|
+
repo: 'leolihao/visualify',
|
106
|
+
// or
|
107
|
+
repo: 'https://github.com/leolihao/visualify/',
|
108
|
+
};
|
109
|
+
```
|
110
|
+
|
111
|
+
## alias
|
112
|
+
|
113
|
+
- Type: `Object`
|
114
|
+
|
115
|
+
Set the route alias. You can freely manage `routing` rules. Supports `RegExp`.
|
116
|
+
|
117
|
+
```js
|
118
|
+
window.$visualify = {
|
119
|
+
alias: {
|
120
|
+
'/docsify': 'https://docsify.js.org/#/configuration?id=alias',
|
121
|
+
},
|
122
|
+
};
|
123
|
+
```
|