mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
* Simplifying the viz interface (#2005) * Working on dashes * Making this a collaborative branch * Fixing some bugs * Fixing bugs * More improvements * Add datasource back in bootstrap data * Decent state * Linting * Moving forward * Some more linting * Fix the timer * Triggering events through state * Lingint * Put filters in an array instead of flt strings (#2090) * Put filters in an array instead of flt strings * Remove query_filter(), put opChoices into Filter * Update version_info.json * Fix migrations * More renderTrigger=true * Fixing bugs * Working on standalone * getting standalone to work * Fixed forcedHeight for standalone =view * Linting * Get save slice working in v2 (#2106) * Filter bugfix * Fixing empty series limit bug * Fixed dashboard view * Fixing short urls * Only allow owners to overwrite slice (#2142) * Raise exception when date range is wrong * Only allow owner to overwrite a slice * Fix tests for deprecate v1 (#2140) * Fixed tests for control panels container and filters * Fixed python tests for explorev2 * Fix linting errors * Add in stop button during slice querying/rendering (#2121) * Add in stop button during slice querying/rendering * Abort ajax request on stop * Adding missing legacy module * Removing select2.sortable.js because of license * Allow query to display while slice is loading (#2100) * Allow query to display while slice is loading * Put latestQueryFormData in store * Reorganized query function, got rid of tu[le return values * Merging migrations * Wrapping up shortner migration * Fixing tests * Add folder creation to syncBackend * Fixing edit URL in explore view * Fix look of Stop button * Adding syntax highlighting to query modal * Fix cast_form_data and flase checkbox on dash * Bugfix * Going deeper * Fix filtering * Deleing invalid filters when changing datasource * Minor adjustments * Fixing calendar heatmap examples * Moving edit datasource button to header's right side * Fixing mapbox example * Show stack trace when clicking alert * Adding npm sync-backend command to build instruction * Bumping up JS dependencies * rm dep on select2 * Fix py3 urlparse * rm superset-select2.js * Improving migration scripts * Bugfixes on staging * Fixing Markup viz
2278 lines
46 KiB
JSON
2278 lines
46 KiB
JSON
{
|
|
"fields": {
|
|
"datasource": {
|
|
"type": "SelectField",
|
|
"label": "Datasource",
|
|
"isLoading": true,
|
|
"clearable": false,
|
|
"default": null,
|
|
"description": ""
|
|
},
|
|
"viz_type": {
|
|
"type": "SelectField",
|
|
"label": "Visualization Type",
|
|
"clearable": false,
|
|
"default": "table",
|
|
"choices": [
|
|
[
|
|
"dist_bar",
|
|
"Distribution - Bar Chart",
|
|
"/static/assets/images/viz_thumbnails/dist_bar.png"
|
|
],
|
|
[
|
|
"pie",
|
|
"Pie Chart",
|
|
"/static/assets/images/viz_thumbnails/pie.png"
|
|
],
|
|
[
|
|
"line",
|
|
"Time Series - Line Chart",
|
|
"/static/assets/images/viz_thumbnails/line.png"
|
|
],
|
|
[
|
|
"dual_line",
|
|
"Time Series - Dual Axis Line Chart",
|
|
"/static/assets/images/viz_thumbnails/dual_line.png"
|
|
],
|
|
[
|
|
"bar",
|
|
"Time Series - Bar Chart",
|
|
"/static/assets/images/viz_thumbnails/bar.png"
|
|
],
|
|
[
|
|
"compare",
|
|
"Time Series - Percent Change",
|
|
"/static/assets/images/viz_thumbnails/compare.png"
|
|
],
|
|
[
|
|
"area",
|
|
"Time Series - Stacked",
|
|
"/static/assets/images/viz_thumbnails/area.png"
|
|
],
|
|
[
|
|
"table",
|
|
"Table View",
|
|
"/static/assets/images/viz_thumbnails/table.png"
|
|
],
|
|
[
|
|
"markup",
|
|
"Markup",
|
|
"/static/assets/images/viz_thumbnails/markup.png"
|
|
],
|
|
[
|
|
"pivot_table",
|
|
"Pivot Table",
|
|
"/static/assets/images/viz_thumbnails/pivot_table.png"
|
|
],
|
|
[
|
|
"separator",
|
|
"Separator",
|
|
"/static/assets/images/viz_thumbnails/separator.png"
|
|
],
|
|
[
|
|
"word_cloud",
|
|
"Word Cloud",
|
|
"/static/assets/images/viz_thumbnails/word_cloud.png"
|
|
],
|
|
[
|
|
"treemap",
|
|
"Treemap",
|
|
"/static/assets/images/viz_thumbnails/treemap.png"
|
|
],
|
|
[
|
|
"cal_heatmap",
|
|
"Calendar Heatmap",
|
|
"/static/assets/images/viz_thumbnails/cal_heatmap.png"
|
|
],
|
|
[
|
|
"box_plot",
|
|
"Box Plot",
|
|
"/static/assets/images/viz_thumbnails/box_plot.png"
|
|
],
|
|
[
|
|
"bubble",
|
|
"Bubble Chart",
|
|
"/static/assets/images/viz_thumbnails/bubble.png"
|
|
],
|
|
[
|
|
"bullet",
|
|
"Bullet Chart",
|
|
"/static/assets/images/viz_thumbnails/bullet.png"
|
|
],
|
|
[
|
|
"big_number",
|
|
"Big Number with Trendline",
|
|
"/static/assets/images/viz_thumbnails/big_number.png"
|
|
],
|
|
[
|
|
"big_number_total",
|
|
"Big Number",
|
|
"/static/assets/images/viz_thumbnails/big_number_total.png"
|
|
],
|
|
[
|
|
"histogram",
|
|
"Histogram",
|
|
"/static/assets/images/viz_thumbnails/histogram.png"
|
|
],
|
|
[
|
|
"sunburst",
|
|
"Sunburst",
|
|
"/static/assets/images/viz_thumbnails/sunburst.png"
|
|
],
|
|
[
|
|
"sankey",
|
|
"Sankey",
|
|
"/static/assets/images/viz_thumbnails/sankey.png"
|
|
],
|
|
[
|
|
"directed_force",
|
|
"Directed Force Layout",
|
|
"/static/assets/images/viz_thumbnails/directed_force.png"
|
|
],
|
|
[
|
|
"world_map",
|
|
"World Map",
|
|
"/static/assets/images/viz_thumbnails/world_map.png"
|
|
],
|
|
[
|
|
"filter_box",
|
|
"Filter Box",
|
|
"/static/assets/images/viz_thumbnails/filter_box.png"
|
|
],
|
|
[
|
|
"iframe",
|
|
"iFrame",
|
|
"/static/assets/images/viz_thumbnails/iframe.png"
|
|
],
|
|
[
|
|
"para",
|
|
"Parallel Coordinates",
|
|
"/static/assets/images/viz_thumbnails/para.png"
|
|
],
|
|
[
|
|
"heatmap",
|
|
"Heatmap",
|
|
"/static/assets/images/viz_thumbnails/heatmap.png"
|
|
],
|
|
[
|
|
"horizon",
|
|
"Horizon",
|
|
"/static/assets/images/viz_thumbnails/horizon.png"
|
|
],
|
|
[
|
|
"mapbox",
|
|
"Mapbox",
|
|
"/static/assets/images/viz_thumbnails/mapbox.png"
|
|
]
|
|
],
|
|
"description": "The type of visualization to display"
|
|
},
|
|
"metrics": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "Metrics",
|
|
"validators": [
|
|
null
|
|
],
|
|
"description": "One or many metrics to display"
|
|
},
|
|
"order_by_cols": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "Ordering",
|
|
"default": [],
|
|
"description": "One or many metrics to display"
|
|
},
|
|
"metric": {
|
|
"type": "SelectField",
|
|
"label": "Metric",
|
|
"clearable": false,
|
|
"description": "Choose the metric"
|
|
},
|
|
"metric_2": {
|
|
"type": "SelectField",
|
|
"label": "Right Axis Metric",
|
|
"choices": [],
|
|
"default": [],
|
|
"description": "Choose a metric for right axis"
|
|
},
|
|
"stacked_style": {
|
|
"type": "SelectField",
|
|
"label": "Stacked Style",
|
|
"choices": [
|
|
[
|
|
"stack",
|
|
"stack"
|
|
],
|
|
[
|
|
"stream",
|
|
"stream"
|
|
],
|
|
[
|
|
"expand",
|
|
"expand"
|
|
]
|
|
],
|
|
"default": "stack",
|
|
"description": ""
|
|
},
|
|
"linear_color_scheme": {
|
|
"type": "SelectField",
|
|
"label": "Linear Color Scheme",
|
|
"choices": [
|
|
[
|
|
"fire",
|
|
"fire"
|
|
],
|
|
[
|
|
"blue_white_yellow",
|
|
"blue/white/yellow"
|
|
],
|
|
[
|
|
"white_black",
|
|
"white/black"
|
|
],
|
|
[
|
|
"black_white",
|
|
"black/white"
|
|
]
|
|
],
|
|
"default": "blue_white_yellow",
|
|
"description": ""
|
|
},
|
|
"normalize_across": {
|
|
"type": "SelectField",
|
|
"label": "Normalize Across",
|
|
"choices": [
|
|
[
|
|
"heatmap",
|
|
"heatmap"
|
|
],
|
|
[
|
|
"x",
|
|
"x"
|
|
],
|
|
[
|
|
"y",
|
|
"y"
|
|
]
|
|
],
|
|
"default": "heatmap",
|
|
"description": "Color will be rendered based on a ratio of the cell against the sum of across this criteria"
|
|
},
|
|
"horizon_color_scale": {
|
|
"type": "SelectField",
|
|
"label": "Horizon Color Scale",
|
|
"choices": [
|
|
[
|
|
"series",
|
|
"series"
|
|
],
|
|
[
|
|
"overall",
|
|
"overall"
|
|
],
|
|
[
|
|
"change",
|
|
"change"
|
|
]
|
|
],
|
|
"default": "series",
|
|
"description": "Defines how the color are attributed."
|
|
},
|
|
"canvas_image_rendering": {
|
|
"type": "SelectField",
|
|
"label": "Rendering",
|
|
"choices": [
|
|
[
|
|
"pixelated",
|
|
"pixelated (Sharp)"
|
|
],
|
|
[
|
|
"auto",
|
|
"auto (Smooth)"
|
|
]
|
|
],
|
|
"default": "pixelated",
|
|
"description": "image-rendering CSS attribute of the canvas object that defines how the browser scales up the image"
|
|
},
|
|
"xscale_interval": {
|
|
"type": "SelectField",
|
|
"label": "XScale Interval",
|
|
"choices": [
|
|
[
|
|
1,
|
|
"1"
|
|
],
|
|
[
|
|
2,
|
|
"2"
|
|
],
|
|
[
|
|
3,
|
|
"3"
|
|
],
|
|
[
|
|
4,
|
|
"4"
|
|
],
|
|
[
|
|
5,
|
|
"5"
|
|
],
|
|
[
|
|
6,
|
|
"6"
|
|
],
|
|
[
|
|
7,
|
|
"7"
|
|
],
|
|
[
|
|
8,
|
|
"8"
|
|
],
|
|
[
|
|
9,
|
|
"9"
|
|
],
|
|
[
|
|
10,
|
|
"10"
|
|
],
|
|
[
|
|
11,
|
|
"11"
|
|
],
|
|
[
|
|
12,
|
|
"12"
|
|
],
|
|
[
|
|
13,
|
|
"13"
|
|
],
|
|
[
|
|
14,
|
|
"14"
|
|
],
|
|
[
|
|
15,
|
|
"15"
|
|
],
|
|
[
|
|
16,
|
|
"16"
|
|
],
|
|
[
|
|
17,
|
|
"17"
|
|
],
|
|
[
|
|
18,
|
|
"18"
|
|
],
|
|
[
|
|
19,
|
|
"19"
|
|
],
|
|
[
|
|
20,
|
|
"20"
|
|
],
|
|
[
|
|
21,
|
|
"21"
|
|
],
|
|
[
|
|
22,
|
|
"22"
|
|
],
|
|
[
|
|
23,
|
|
"23"
|
|
],
|
|
[
|
|
24,
|
|
"24"
|
|
],
|
|
[
|
|
25,
|
|
"25"
|
|
],
|
|
[
|
|
26,
|
|
"26"
|
|
],
|
|
[
|
|
27,
|
|
"27"
|
|
],
|
|
[
|
|
28,
|
|
"28"
|
|
],
|
|
[
|
|
29,
|
|
"29"
|
|
],
|
|
[
|
|
30,
|
|
"30"
|
|
],
|
|
[
|
|
31,
|
|
"31"
|
|
],
|
|
[
|
|
32,
|
|
"32"
|
|
],
|
|
[
|
|
33,
|
|
"33"
|
|
],
|
|
[
|
|
34,
|
|
"34"
|
|
],
|
|
[
|
|
35,
|
|
"35"
|
|
],
|
|
[
|
|
36,
|
|
"36"
|
|
],
|
|
[
|
|
37,
|
|
"37"
|
|
],
|
|
[
|
|
38,
|
|
"38"
|
|
],
|
|
[
|
|
39,
|
|
"39"
|
|
],
|
|
[
|
|
40,
|
|
"40"
|
|
],
|
|
[
|
|
41,
|
|
"41"
|
|
],
|
|
[
|
|
42,
|
|
"42"
|
|
],
|
|
[
|
|
43,
|
|
"43"
|
|
],
|
|
[
|
|
44,
|
|
"44"
|
|
],
|
|
[
|
|
45,
|
|
"45"
|
|
],
|
|
[
|
|
46,
|
|
"46"
|
|
],
|
|
[
|
|
47,
|
|
"47"
|
|
],
|
|
[
|
|
48,
|
|
"48"
|
|
],
|
|
[
|
|
49,
|
|
"49"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
]
|
|
],
|
|
"default": "1",
|
|
"description": "Number of steps to take between ticks when displaying the X scale"
|
|
},
|
|
"yscale_interval": {
|
|
"type": "SelectField",
|
|
"label": "YScale Interval",
|
|
"choices": [
|
|
[
|
|
1,
|
|
"1"
|
|
],
|
|
[
|
|
2,
|
|
"2"
|
|
],
|
|
[
|
|
3,
|
|
"3"
|
|
],
|
|
[
|
|
4,
|
|
"4"
|
|
],
|
|
[
|
|
5,
|
|
"5"
|
|
],
|
|
[
|
|
6,
|
|
"6"
|
|
],
|
|
[
|
|
7,
|
|
"7"
|
|
],
|
|
[
|
|
8,
|
|
"8"
|
|
],
|
|
[
|
|
9,
|
|
"9"
|
|
],
|
|
[
|
|
10,
|
|
"10"
|
|
],
|
|
[
|
|
11,
|
|
"11"
|
|
],
|
|
[
|
|
12,
|
|
"12"
|
|
],
|
|
[
|
|
13,
|
|
"13"
|
|
],
|
|
[
|
|
14,
|
|
"14"
|
|
],
|
|
[
|
|
15,
|
|
"15"
|
|
],
|
|
[
|
|
16,
|
|
"16"
|
|
],
|
|
[
|
|
17,
|
|
"17"
|
|
],
|
|
[
|
|
18,
|
|
"18"
|
|
],
|
|
[
|
|
19,
|
|
"19"
|
|
],
|
|
[
|
|
20,
|
|
"20"
|
|
],
|
|
[
|
|
21,
|
|
"21"
|
|
],
|
|
[
|
|
22,
|
|
"22"
|
|
],
|
|
[
|
|
23,
|
|
"23"
|
|
],
|
|
[
|
|
24,
|
|
"24"
|
|
],
|
|
[
|
|
25,
|
|
"25"
|
|
],
|
|
[
|
|
26,
|
|
"26"
|
|
],
|
|
[
|
|
27,
|
|
"27"
|
|
],
|
|
[
|
|
28,
|
|
"28"
|
|
],
|
|
[
|
|
29,
|
|
"29"
|
|
],
|
|
[
|
|
30,
|
|
"30"
|
|
],
|
|
[
|
|
31,
|
|
"31"
|
|
],
|
|
[
|
|
32,
|
|
"32"
|
|
],
|
|
[
|
|
33,
|
|
"33"
|
|
],
|
|
[
|
|
34,
|
|
"34"
|
|
],
|
|
[
|
|
35,
|
|
"35"
|
|
],
|
|
[
|
|
36,
|
|
"36"
|
|
],
|
|
[
|
|
37,
|
|
"37"
|
|
],
|
|
[
|
|
38,
|
|
"38"
|
|
],
|
|
[
|
|
39,
|
|
"39"
|
|
],
|
|
[
|
|
40,
|
|
"40"
|
|
],
|
|
[
|
|
41,
|
|
"41"
|
|
],
|
|
[
|
|
42,
|
|
"42"
|
|
],
|
|
[
|
|
43,
|
|
"43"
|
|
],
|
|
[
|
|
44,
|
|
"44"
|
|
],
|
|
[
|
|
45,
|
|
"45"
|
|
],
|
|
[
|
|
46,
|
|
"46"
|
|
],
|
|
[
|
|
47,
|
|
"47"
|
|
],
|
|
[
|
|
48,
|
|
"48"
|
|
],
|
|
[
|
|
49,
|
|
"49"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
]
|
|
],
|
|
"default": null,
|
|
"description": "Number of steps to take between ticks when displaying the Y scale"
|
|
},
|
|
"bar_stacked": {
|
|
"type": "CheckboxField",
|
|
"label": "Stacked Bars",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": null
|
|
},
|
|
"show_markers": {
|
|
"type": "CheckboxField",
|
|
"label": "Show Markers",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Show data points as circle markers on the lines"
|
|
},
|
|
"show_bar_value": {
|
|
"type": "CheckboxField",
|
|
"label": "Bar Values",
|
|
"default": false,
|
|
"renderTrigger": true,
|
|
"description": "Show the value on top of the bar"
|
|
},
|
|
"order_bars": {
|
|
"type": "CheckboxField",
|
|
"label": "Sort Bars",
|
|
"default": false,
|
|
"description": "Sort bars by x labels."
|
|
},
|
|
"show_controls": {
|
|
"type": "CheckboxField",
|
|
"label": "Extra Controls",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Whether to show extra controls or not. Extra controls include things like making mulitBar charts stacked or side by side."
|
|
},
|
|
"reduce_x_ticks": {
|
|
"type": "CheckboxField",
|
|
"label": "Reduce X ticks",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Reduces the number of X axis ticks to be rendered. If true, the x axis wont overflow and labels may be missing. If false, a minimum width will be applied to columns and the width may overflow into an horizontal scroll."
|
|
},
|
|
"include_series": {
|
|
"type": "CheckboxField",
|
|
"label": "Include Series",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Include series name as an axis"
|
|
},
|
|
"secondary_metric": {
|
|
"type": "SelectField",
|
|
"label": "Color Metric",
|
|
"default": null,
|
|
"description": "A metric to use for color"
|
|
},
|
|
"country_fieldtype": {
|
|
"type": "SelectField",
|
|
"label": "Country Field Type",
|
|
"default": "cca2",
|
|
"choices": [
|
|
[
|
|
"name",
|
|
"Full name"
|
|
],
|
|
[
|
|
"cioc",
|
|
"code International Olympic Committee (cioc)"
|
|
],
|
|
[
|
|
"cca2",
|
|
"code ISO 3166-1 alpha-2 (cca2)"
|
|
],
|
|
[
|
|
"cca3",
|
|
"code ISO 3166-1 alpha-3 (cca3)"
|
|
]
|
|
],
|
|
"description": "The country code standard that Superset should expect to find in the [country] column"
|
|
},
|
|
"groupby": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "Group by",
|
|
"default": [],
|
|
"description": "One or many fields to group by"
|
|
},
|
|
"columns": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "Columns",
|
|
"default": [],
|
|
"description": "One or many fields to pivot as columns"
|
|
},
|
|
"all_columns": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "Columns",
|
|
"default": [],
|
|
"description": "Columns to display"
|
|
},
|
|
"all_columns_x": {
|
|
"type": "SelectField",
|
|
"label": "X",
|
|
"default": null,
|
|
"description": "Columns to display"
|
|
},
|
|
"all_columns_y": {
|
|
"type": "SelectField",
|
|
"label": "Y",
|
|
"default": null,
|
|
"description": "Columns to display"
|
|
},
|
|
"druid_time_origin": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Origin",
|
|
"choices": [
|
|
[
|
|
"",
|
|
"default"
|
|
],
|
|
[
|
|
"now",
|
|
"now"
|
|
]
|
|
],
|
|
"default": null,
|
|
"description": "Defines the origin where time buckets start, accepts natural dates as in `now`, `sunday` or `1970-01-01`"
|
|
},
|
|
"bottom_margin": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Bottom Margin",
|
|
"choices": [
|
|
[
|
|
"auto",
|
|
"auto"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
],
|
|
[
|
|
75,
|
|
"75"
|
|
],
|
|
[
|
|
100,
|
|
"100"
|
|
],
|
|
[
|
|
125,
|
|
"125"
|
|
],
|
|
[
|
|
150,
|
|
"150"
|
|
],
|
|
[
|
|
200,
|
|
"200"
|
|
]
|
|
],
|
|
"default": "auto",
|
|
"description": "Bottom marging, in pixels, allowing for more room for axis labels"
|
|
},
|
|
"granularity": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Time Granularity",
|
|
"default": "one day",
|
|
"choices": [
|
|
[
|
|
"all",
|
|
"all"
|
|
],
|
|
[
|
|
"5 seconds",
|
|
"5 seconds"
|
|
],
|
|
[
|
|
"30 seconds",
|
|
"30 seconds"
|
|
],
|
|
[
|
|
"1 minute",
|
|
"1 minute"
|
|
],
|
|
[
|
|
"5 minutes",
|
|
"5 minutes"
|
|
],
|
|
[
|
|
"1 hour",
|
|
"1 hour"
|
|
],
|
|
[
|
|
"6 hour",
|
|
"6 hour"
|
|
],
|
|
[
|
|
"1 day",
|
|
"1 day"
|
|
],
|
|
[
|
|
"7 days",
|
|
"7 days"
|
|
],
|
|
[
|
|
"week",
|
|
"week"
|
|
],
|
|
[
|
|
"week_starting_sunday",
|
|
"week_starting_sunday"
|
|
],
|
|
[
|
|
"week_ending_saturday",
|
|
"week_ending_saturday"
|
|
],
|
|
[
|
|
"month",
|
|
"month"
|
|
]
|
|
],
|
|
"description": "The time granularity for the visualization. Note that you can type and use simple natural language as in `10 seconds`, `1 day` or `56 weeks`"
|
|
},
|
|
"domain_granularity": {
|
|
"type": "SelectField",
|
|
"label": "Domain",
|
|
"default": "month",
|
|
"choices": [
|
|
[
|
|
"hour",
|
|
"hour"
|
|
],
|
|
[
|
|
"day",
|
|
"day"
|
|
],
|
|
[
|
|
"week",
|
|
"week"
|
|
],
|
|
[
|
|
"month",
|
|
"month"
|
|
],
|
|
[
|
|
"year",
|
|
"year"
|
|
]
|
|
],
|
|
"description": "The time unit used for the grouping of blocks"
|
|
},
|
|
"subdomain_granularity": {
|
|
"type": "SelectField",
|
|
"label": "Subdomain",
|
|
"default": "day",
|
|
"choices": [
|
|
[
|
|
"min",
|
|
"min"
|
|
],
|
|
[
|
|
"hour",
|
|
"hour"
|
|
],
|
|
[
|
|
"day",
|
|
"day"
|
|
],
|
|
[
|
|
"week",
|
|
"week"
|
|
],
|
|
[
|
|
"month",
|
|
"month"
|
|
]
|
|
],
|
|
"description": "The time unit for each block. Should be a smaller unit than domain_granularity. Should be larger or equal to Time Grain"
|
|
},
|
|
"link_length": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Link Length",
|
|
"default": "200",
|
|
"choices": [
|
|
[
|
|
"10",
|
|
"10"
|
|
],
|
|
[
|
|
"25",
|
|
"25"
|
|
],
|
|
[
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"75",
|
|
"75"
|
|
],
|
|
[
|
|
"100",
|
|
"100"
|
|
],
|
|
[
|
|
"150",
|
|
"150"
|
|
],
|
|
[
|
|
"200",
|
|
"200"
|
|
],
|
|
[
|
|
"250",
|
|
"250"
|
|
]
|
|
],
|
|
"description": "Link length in the force layout"
|
|
},
|
|
"charge": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Charge",
|
|
"default": "-500",
|
|
"choices": [
|
|
[
|
|
"-50",
|
|
"-50"
|
|
],
|
|
[
|
|
"-75",
|
|
"-75"
|
|
],
|
|
[
|
|
"-100",
|
|
"-100"
|
|
],
|
|
[
|
|
"-150",
|
|
"-150"
|
|
],
|
|
[
|
|
"-200",
|
|
"-200"
|
|
],
|
|
[
|
|
"-250",
|
|
"-250"
|
|
],
|
|
[
|
|
"-500",
|
|
"-500"
|
|
],
|
|
[
|
|
"-1000",
|
|
"-1000"
|
|
],
|
|
[
|
|
"-2500",
|
|
"-2500"
|
|
],
|
|
[
|
|
"-5000",
|
|
"-5000"
|
|
]
|
|
],
|
|
"description": "Charge in the force layout"
|
|
},
|
|
"granularity_sqla": {
|
|
"type": "SelectField",
|
|
"label": "Time Column",
|
|
"description": "The time column for the visualization. Note that you can define arbitrary expression that return a DATETIME column in the table or. Also note that the filter below is applied against this column or expression"
|
|
},
|
|
"time_grain_sqla": {
|
|
"type": "SelectField",
|
|
"label": "Time Grain",
|
|
"description": "The time granularity for the visualization. This applies a date transformation to alter your time column and defines a new time granularity. The options here are defined on a per database engine basis in the Superset source code."
|
|
},
|
|
"resample_rule": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Resample Rule",
|
|
"default": null,
|
|
"choices": [
|
|
[
|
|
"",
|
|
""
|
|
],
|
|
[
|
|
"1T",
|
|
"1T"
|
|
],
|
|
[
|
|
"1H",
|
|
"1H"
|
|
],
|
|
[
|
|
"1D",
|
|
"1D"
|
|
],
|
|
[
|
|
"7D",
|
|
"7D"
|
|
],
|
|
[
|
|
"1M",
|
|
"1M"
|
|
],
|
|
[
|
|
"1AS",
|
|
"1AS"
|
|
]
|
|
],
|
|
"description": "Pandas resample rule"
|
|
},
|
|
"resample_how": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Resample How",
|
|
"default": null,
|
|
"choices": [
|
|
[
|
|
"",
|
|
""
|
|
],
|
|
[
|
|
"mean",
|
|
"mean"
|
|
],
|
|
[
|
|
"sum",
|
|
"sum"
|
|
],
|
|
[
|
|
"median",
|
|
"median"
|
|
]
|
|
],
|
|
"description": "Pandas resample how"
|
|
},
|
|
"resample_fillmethod": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Resample Fill Method",
|
|
"default": null,
|
|
"choices": [
|
|
[
|
|
"",
|
|
""
|
|
],
|
|
[
|
|
"ffill",
|
|
"ffill"
|
|
],
|
|
[
|
|
"bfill",
|
|
"bfill"
|
|
]
|
|
],
|
|
"description": "Pandas resample fill method"
|
|
},
|
|
"since": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Since",
|
|
"default": "7 days ago",
|
|
"choices": [
|
|
[
|
|
"1 hour ago",
|
|
"1 hour ago"
|
|
],
|
|
[
|
|
"12 hours ago",
|
|
"12 hours ago"
|
|
],
|
|
[
|
|
"1 day ago",
|
|
"1 day ago"
|
|
],
|
|
[
|
|
"7 days ago",
|
|
"7 days ago"
|
|
],
|
|
[
|
|
"28 days ago",
|
|
"28 days ago"
|
|
],
|
|
[
|
|
"90 days ago",
|
|
"90 days ago"
|
|
],
|
|
[
|
|
"1 year ago",
|
|
"1 year ago"
|
|
],
|
|
[
|
|
"100 year ago",
|
|
"100 year ago"
|
|
]
|
|
],
|
|
"description": "Timestamp from filter. This supports free form typing and natural language as in `1 day ago`, `28 days` or `3 years`"
|
|
},
|
|
"until": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Until",
|
|
"default": "now",
|
|
"choices": [
|
|
[
|
|
"now",
|
|
"now"
|
|
],
|
|
[
|
|
"1 day ago",
|
|
"1 day ago"
|
|
],
|
|
[
|
|
"7 days ago",
|
|
"7 days ago"
|
|
],
|
|
[
|
|
"28 days ago",
|
|
"28 days ago"
|
|
],
|
|
[
|
|
"90 days ago",
|
|
"90 days ago"
|
|
],
|
|
[
|
|
"1 year ago",
|
|
"1 year ago"
|
|
]
|
|
]
|
|
},
|
|
"max_bubble_size": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Max Bubble Size",
|
|
"default": "25",
|
|
"choices": [
|
|
[
|
|
"5",
|
|
"5"
|
|
],
|
|
[
|
|
"10",
|
|
"10"
|
|
],
|
|
[
|
|
"15",
|
|
"15"
|
|
],
|
|
[
|
|
"25",
|
|
"25"
|
|
],
|
|
[
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"75",
|
|
"75"
|
|
],
|
|
[
|
|
"100",
|
|
"100"
|
|
]
|
|
]
|
|
},
|
|
"whisker_options": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Whisker/outlier options",
|
|
"default": "Tukey",
|
|
"description": "Determines how whiskers and outliers are calculated.",
|
|
"choices": [
|
|
[
|
|
"Tukey",
|
|
"Tukey"
|
|
],
|
|
[
|
|
"Min/max (no outliers)",
|
|
"Min/max (no outliers)"
|
|
],
|
|
[
|
|
"2/98 percentiles",
|
|
"2/98 percentiles"
|
|
],
|
|
[
|
|
"9/91 percentiles",
|
|
"9/91 percentiles"
|
|
]
|
|
]
|
|
},
|
|
"treemap_ratio": {
|
|
"type": "TextField",
|
|
"label": "Ratio",
|
|
"isFloat": true,
|
|
"default": 1.618033988749895,
|
|
"description": "Target aspect ratio for treemap tiles."
|
|
},
|
|
"number_format": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Number format",
|
|
"default": [
|
|
".3s",
|
|
".3s | 12.3k"
|
|
],
|
|
"choices": [
|
|
[
|
|
".3s",
|
|
".3s | 12.3k"
|
|
],
|
|
[
|
|
".3%",
|
|
".3% | 1234543.210%"
|
|
],
|
|
[
|
|
".4r",
|
|
".4r | 12350"
|
|
],
|
|
[
|
|
".3f",
|
|
".3f | 12345.432"
|
|
],
|
|
[
|
|
"+,",
|
|
"+, | +12,345.4321"
|
|
],
|
|
[
|
|
"$,.2f",
|
|
"$,.2f | $12,345.43"
|
|
]
|
|
],
|
|
"description": "D3 format syntax: https://github.com/d3/d3-format"
|
|
},
|
|
"row_limit": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Row limit",
|
|
"default": null,
|
|
"choices": [
|
|
[
|
|
10,
|
|
"10"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
],
|
|
[
|
|
100,
|
|
"100"
|
|
],
|
|
[
|
|
250,
|
|
"250"
|
|
],
|
|
[
|
|
500,
|
|
"500"
|
|
],
|
|
[
|
|
1000,
|
|
"1000"
|
|
],
|
|
[
|
|
5000,
|
|
"5000"
|
|
],
|
|
[
|
|
10000,
|
|
"10000"
|
|
],
|
|
[
|
|
50000,
|
|
"50000"
|
|
]
|
|
]
|
|
},
|
|
"limit": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Series limit",
|
|
"choices": [
|
|
[
|
|
0,
|
|
"0"
|
|
],
|
|
[
|
|
5,
|
|
"5"
|
|
],
|
|
[
|
|
10,
|
|
"10"
|
|
],
|
|
[
|
|
25,
|
|
"25"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
],
|
|
[
|
|
100,
|
|
"100"
|
|
],
|
|
[
|
|
500,
|
|
"500"
|
|
]
|
|
],
|
|
"default": 50,
|
|
"description": "Limits the number of time series that get displayed"
|
|
},
|
|
"timeseries_limit_metric": {
|
|
"type": "SelectField",
|
|
"label": "Sort By",
|
|
"default": null,
|
|
"description": "Metric used to define the top series"
|
|
},
|
|
"rolling_type": {
|
|
"type": "SelectField",
|
|
"label": "Rolling",
|
|
"default": "None",
|
|
"choices": [
|
|
[
|
|
"None",
|
|
"None"
|
|
],
|
|
[
|
|
"mean",
|
|
"mean"
|
|
],
|
|
[
|
|
"sum",
|
|
"sum"
|
|
],
|
|
[
|
|
"std",
|
|
"std"
|
|
],
|
|
[
|
|
"cumsum",
|
|
"cumsum"
|
|
]
|
|
],
|
|
"description": "Defines a rolling window function to apply, works along with the [Periods] text box"
|
|
},
|
|
"rolling_periods": {
|
|
"type": "TextField",
|
|
"label": "Periods",
|
|
"isInt": true,
|
|
"description": "Defines the size of the rolling window function, relative to the time granularity selected"
|
|
},
|
|
"series": {
|
|
"type": "SelectField",
|
|
"label": "Series",
|
|
"default": null,
|
|
"description": "Defines the grouping of entities. Each series is shown as a specific color on the chart and has a legend toggle"
|
|
},
|
|
"entity": {
|
|
"type": "SelectField",
|
|
"label": "Entity",
|
|
"default": null,
|
|
"description": "This define the element to be plotted on the chart"
|
|
},
|
|
"x": {
|
|
"type": "SelectField",
|
|
"label": "X Axis",
|
|
"default": null,
|
|
"description": "Metric assigned to the [X] axis"
|
|
},
|
|
"y": {
|
|
"type": "SelectField",
|
|
"label": "Y Axis",
|
|
"default": null,
|
|
"description": "Metric assigned to the [Y] axis"
|
|
},
|
|
"size": {
|
|
"type": "SelectField",
|
|
"label": "Bubble Size",
|
|
"default": null
|
|
},
|
|
"url": {
|
|
"type": "TextField",
|
|
"label": "URL",
|
|
"description": "The URL, this field is templated, so you can integrate {{ width }} and/or {{ height }} in your URL string.",
|
|
"default": "https: //www.youtube.com/embed/JkI5rg_VcQ4"
|
|
},
|
|
"x_axis_label": {
|
|
"type": "TextField",
|
|
"label": "X Axis Label",
|
|
"renderTrigger": true,
|
|
"default": ""
|
|
},
|
|
"y_axis_label": {
|
|
"type": "TextField",
|
|
"label": "Y Axis Label",
|
|
"renderTrigger": true,
|
|
"default": ""
|
|
},
|
|
"where": {
|
|
"type": "TextField",
|
|
"label": "Custom WHERE clause",
|
|
"default": "",
|
|
"description": "The text in this box gets included in your query's WHERE clause, as an AND to other criteria. You can include complex expression, parenthesis and anything else supported by the backend it is directed towards."
|
|
},
|
|
"having": {
|
|
"type": "TextField",
|
|
"label": "Custom HAVING clause",
|
|
"default": "",
|
|
"description": "The text in this box gets included in your query's HAVING clause, as an AND to other criteria. You can include complex expression, parenthesis and anything else supported by the backend it is directed towards."
|
|
},
|
|
"compare_lag": {
|
|
"type": "TextField",
|
|
"label": "Comparison Period Lag",
|
|
"isInt": true,
|
|
"description": "Based on granularity, number of time periods to compare against"
|
|
},
|
|
"compare_suffix": {
|
|
"type": "TextField",
|
|
"label": "Comparison suffix",
|
|
"description": "Suffix to apply after the percentage display"
|
|
},
|
|
"table_timestamp_format": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Table Timestamp Format",
|
|
"default": "smart_date",
|
|
"choices": [
|
|
[
|
|
"smart_date",
|
|
"Adaptative formating"
|
|
],
|
|
[
|
|
"%m/%d/%Y",
|
|
"%m/%d/%Y | 01/14/2019"
|
|
],
|
|
[
|
|
"%Y-%m-%d",
|
|
"%Y-%m-%d | 2019-01-14"
|
|
],
|
|
[
|
|
"%Y-%m-%d %H:%M:%S",
|
|
"%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10"
|
|
],
|
|
[
|
|
"%H:%M:%S",
|
|
"%H:%M:%S | 01:32:10"
|
|
]
|
|
],
|
|
"description": "Timestamp Format"
|
|
},
|
|
"series_height": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Series Height",
|
|
"default": "25",
|
|
"choices": [
|
|
[
|
|
"10",
|
|
"10"
|
|
],
|
|
[
|
|
"25",
|
|
"25"
|
|
],
|
|
[
|
|
"40",
|
|
"40"
|
|
],
|
|
[
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"75",
|
|
"75"
|
|
],
|
|
[
|
|
"100",
|
|
"100"
|
|
],
|
|
[
|
|
"150",
|
|
"150"
|
|
],
|
|
[
|
|
"200",
|
|
"200"
|
|
]
|
|
],
|
|
"description": "Pixel height of each series"
|
|
},
|
|
"page_length": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Page Length",
|
|
"default": 0,
|
|
"choices": [
|
|
[
|
|
0,
|
|
"0"
|
|
],
|
|
[
|
|
10,
|
|
"10"
|
|
],
|
|
[
|
|
25,
|
|
"25"
|
|
],
|
|
[
|
|
40,
|
|
"40"
|
|
],
|
|
[
|
|
50,
|
|
"50"
|
|
],
|
|
[
|
|
75,
|
|
"75"
|
|
],
|
|
[
|
|
100,
|
|
"100"
|
|
],
|
|
[
|
|
150,
|
|
"150"
|
|
],
|
|
[
|
|
200,
|
|
"200"
|
|
]
|
|
],
|
|
"description": "Rows per page, 0 means no pagination"
|
|
},
|
|
"x_axis_format": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "X axis format",
|
|
"renderTrigger": true,
|
|
"default": "smart_date",
|
|
"choices": [
|
|
[
|
|
"smart_date",
|
|
"Adaptative formating"
|
|
],
|
|
[
|
|
"%m/%d/%Y",
|
|
"%m/%d/%Y | 01/14/2019"
|
|
],
|
|
[
|
|
"%Y-%m-%d",
|
|
"%Y-%m-%d | 2019-01-14"
|
|
],
|
|
[
|
|
"%Y-%m-%d %H:%M:%S",
|
|
"%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10"
|
|
],
|
|
[
|
|
"%H:%M:%S",
|
|
"%H:%M:%S | 01:32:10"
|
|
]
|
|
],
|
|
"description": "D3 format syntax: https://github.com/d3/d3-format"
|
|
},
|
|
"y_axis_format": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Y axis format",
|
|
"renderTrigger": true,
|
|
"default": ".3s",
|
|
"choices": [
|
|
[
|
|
".3s",
|
|
".3s | 12.3k"
|
|
],
|
|
[
|
|
".3%",
|
|
".3% | 1234543.210%"
|
|
],
|
|
[
|
|
".4r",
|
|
".4r | 12350"
|
|
],
|
|
[
|
|
".3f",
|
|
".3f | 12345.432"
|
|
],
|
|
[
|
|
"+,",
|
|
"+, | +12,345.4321"
|
|
],
|
|
[
|
|
"$,.2f",
|
|
"$,.2f | $12,345.43"
|
|
]
|
|
],
|
|
"description": "D3 format syntax: https://github.com/d3/d3-format"
|
|
},
|
|
"y_axis_2_format": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Right axis format",
|
|
"default": ".3s",
|
|
"choices": [
|
|
[
|
|
".3s",
|
|
".3s | 12.3k"
|
|
],
|
|
[
|
|
".3%",
|
|
".3% | 1234543.210%"
|
|
],
|
|
[
|
|
".4r",
|
|
".4r | 12350"
|
|
],
|
|
[
|
|
".3f",
|
|
".3f | 12345.432"
|
|
],
|
|
[
|
|
"+,",
|
|
"+, | +12,345.4321"
|
|
],
|
|
[
|
|
"$,.2f",
|
|
"$,.2f | $12,345.43"
|
|
]
|
|
],
|
|
"description": "D3 format syntax: https://github.com/d3/d3-format"
|
|
},
|
|
"markup_type": {
|
|
"type": "SelectField",
|
|
"label": "Markup Type",
|
|
"choices": [
|
|
[
|
|
"markdown",
|
|
"markdown"
|
|
],
|
|
[
|
|
"html",
|
|
"html"
|
|
]
|
|
],
|
|
"default": "markdown",
|
|
"description": "Pick your favorite markup language"
|
|
},
|
|
"rotation": {
|
|
"type": "SelectField",
|
|
"label": "Rotation",
|
|
"choices": [
|
|
[
|
|
"random",
|
|
"random"
|
|
],
|
|
[
|
|
"flat",
|
|
"flat"
|
|
],
|
|
[
|
|
"square",
|
|
"square"
|
|
]
|
|
],
|
|
"default": "random",
|
|
"description": "Rotation to apply to words in the cloud"
|
|
},
|
|
"line_interpolation": {
|
|
"type": "SelectField",
|
|
"label": "Line Style",
|
|
"renderTrigger": true,
|
|
"choices": [
|
|
[
|
|
"linear",
|
|
"linear"
|
|
],
|
|
[
|
|
"basis",
|
|
"basis"
|
|
],
|
|
[
|
|
"cardinal",
|
|
"cardinal"
|
|
],
|
|
[
|
|
"monotone",
|
|
"monotone"
|
|
],
|
|
[
|
|
"step-before",
|
|
"step-before"
|
|
],
|
|
[
|
|
"step-after",
|
|
"step-after"
|
|
]
|
|
],
|
|
"default": "linear",
|
|
"description": "Line interpolation as defined by d3.js"
|
|
},
|
|
"pie_label_type": {
|
|
"type": "SelectField",
|
|
"label": "Label Type",
|
|
"default": "key",
|
|
"choices": [
|
|
[
|
|
"key",
|
|
"Category Name"
|
|
],
|
|
[
|
|
"value",
|
|
"Value"
|
|
],
|
|
[
|
|
"percent",
|
|
"Percentage"
|
|
]
|
|
],
|
|
"description": "What should be shown on the label?"
|
|
},
|
|
"code": {
|
|
"type": "TextAreaField",
|
|
"label": "Code",
|
|
"description": "Put your code here",
|
|
"default": ""
|
|
},
|
|
"pandas_aggfunc": {
|
|
"type": "SelectField",
|
|
"label": "Aggregation function",
|
|
"clearable": false,
|
|
"choices": [
|
|
[
|
|
"sum",
|
|
"sum"
|
|
],
|
|
[
|
|
"mean",
|
|
"mean"
|
|
],
|
|
[
|
|
"min",
|
|
"min"
|
|
],
|
|
[
|
|
"max",
|
|
"max"
|
|
],
|
|
[
|
|
"median",
|
|
"median"
|
|
],
|
|
[
|
|
"stdev",
|
|
"stdev"
|
|
],
|
|
[
|
|
"var",
|
|
"var"
|
|
]
|
|
],
|
|
"default": "sum",
|
|
"description": "Aggregate function to apply when pivoting and computing the total rows and columns"
|
|
},
|
|
"size_from": {
|
|
"type": "TextField",
|
|
"isInt": true,
|
|
"label": "Font Size From",
|
|
"default": "20",
|
|
"description": "Font size for the smallest value in the list"
|
|
},
|
|
"size_to": {
|
|
"type": "TextField",
|
|
"isInt": true,
|
|
"label": "Font Size To",
|
|
"default": "150",
|
|
"description": "Font size for the biggest value in the list"
|
|
},
|
|
"show_brush": {
|
|
"type": "CheckboxField",
|
|
"label": "Range Filter",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Whether to display the time range interactive selector"
|
|
},
|
|
"date_filter": {
|
|
"type": "CheckboxField",
|
|
"label": "Date Filter",
|
|
"default": false,
|
|
"description": "Whether to include a time filter"
|
|
},
|
|
"show_datatable": {
|
|
"type": "CheckboxField",
|
|
"label": "Data Table",
|
|
"default": false,
|
|
"description": "Whether to display the interactive data table"
|
|
},
|
|
"include_search": {
|
|
"type": "CheckboxField",
|
|
"label": "Search Box",
|
|
"renderTrigger": true,
|
|
"default": false,
|
|
"description": "Whether to include a client side search box"
|
|
},
|
|
"table_filter": {
|
|
"type": "CheckboxField",
|
|
"label": "Table Filter",
|
|
"default": false,
|
|
"description": "Whether to apply filter when table cell is clicked"
|
|
},
|
|
"show_bubbles": {
|
|
"type": "CheckboxField",
|
|
"label": "Show Bubbles",
|
|
"default": false,
|
|
"renderTrigger": true,
|
|
"description": "Whether to display bubbles on top of countries"
|
|
},
|
|
"show_legend": {
|
|
"type": "CheckboxField",
|
|
"label": "Legend",
|
|
"renderTrigger": true,
|
|
"default": true,
|
|
"description": "Whether to display the legend (toggles)"
|
|
},
|
|
"x_axis_showminmax": {
|
|
"type": "CheckboxField",
|
|
"label": "X bounds",
|
|
"renderTrigger": true,
|
|
"default": true,
|
|
"description": "Whether to display the min and max values of the X axis"
|
|
},
|
|
"rich_tooltip": {
|
|
"type": "CheckboxField",
|
|
"label": "Rich Tooltip",
|
|
"renderTrigger": true,
|
|
"default": true,
|
|
"description": "The rich tooltip shows a list of all series for that point in time"
|
|
},
|
|
"y_axis_zero": {
|
|
"type": "CheckboxField",
|
|
"label": "Y Axis Zero",
|
|
"default": false,
|
|
"renderTrigger": true,
|
|
"description": "Force the Y axis to start at 0 instead of the minimum value"
|
|
},
|
|
"y_log_scale": {
|
|
"type": "CheckboxField",
|
|
"label": "Y Log Scale",
|
|
"default": false,
|
|
"renderTrigger": true,
|
|
"description": "Use a log scale for the Y axis"
|
|
},
|
|
"x_log_scale": {
|
|
"type": "CheckboxField",
|
|
"label": "X Log Scale",
|
|
"default": false,
|
|
"renderTrigger": true,
|
|
"description": "Use a log scale for the X axis"
|
|
},
|
|
"donut": {
|
|
"type": "CheckboxField",
|
|
"label": "Donut",
|
|
"default": false,
|
|
"description": "Do you want a donut or a pie?"
|
|
},
|
|
"labels_outside": {
|
|
"type": "CheckboxField",
|
|
"label": "Put labels outside",
|
|
"default": true,
|
|
"description": "Put the labels outside the pie?"
|
|
},
|
|
"contribution": {
|
|
"type": "CheckboxField",
|
|
"label": "Contribution",
|
|
"default": false,
|
|
"description": "Compute the contribution to the total"
|
|
},
|
|
"num_period_compare": {
|
|
"type": "TextField",
|
|
"label": "Period Ratio",
|
|
"default": "",
|
|
"isInt": true,
|
|
"description": "[integer] Number of period to compare against, this is relative to the granularity selected"
|
|
},
|
|
"period_ratio_type": {
|
|
"type": "SelectField",
|
|
"label": "Period Ratio Type",
|
|
"default": "growth",
|
|
"choices": [
|
|
[
|
|
"factor",
|
|
"factor"
|
|
],
|
|
[
|
|
"growth",
|
|
"growth"
|
|
],
|
|
[
|
|
"value",
|
|
"value"
|
|
]
|
|
],
|
|
"description": "`factor` means (new/previous), `growth` is ((new/previous) - 1), `value` is (new-previous)"
|
|
},
|
|
"time_compare": {
|
|
"type": "TextField",
|
|
"label": "Time Shift",
|
|
"default": null,
|
|
"description": "Overlay a timeseries from a relative time period. Expects relative time delta in natural language (example: 24 hours, 7 days, 56 weeks, 365 days"
|
|
},
|
|
"subheader": {
|
|
"type": "TextField",
|
|
"label": "Subheader",
|
|
"description": "Description text that shows up below your Big Number"
|
|
},
|
|
"mapbox_label": {
|
|
"type": "SelectField",
|
|
"multi": true,
|
|
"label": "label",
|
|
"default": [],
|
|
"description": "`count` is COUNT(*) if a group by is used. Numerical columns will be aggregated with the aggregator. Non-numerical columns will be used to label points. Leave empty to get a count of points in each cluster."
|
|
},
|
|
"mapbox_style": {
|
|
"type": "SelectField",
|
|
"label": "Map Style",
|
|
"choices": [
|
|
[
|
|
"mapbox://styles/mapbox/streets-v9",
|
|
"Streets"
|
|
],
|
|
[
|
|
"mapbox://styles/mapbox/dark-v9",
|
|
"Dark"
|
|
],
|
|
[
|
|
"mapbox://styles/mapbox/light-v9",
|
|
"Light"
|
|
],
|
|
[
|
|
"mapbox://styles/mapbox/satellite-streets-v9",
|
|
"Satellite Streets"
|
|
],
|
|
[
|
|
"mapbox://styles/mapbox/satellite-v9",
|
|
"Satellite"
|
|
],
|
|
[
|
|
"mapbox://styles/mapbox/outdoors-v9",
|
|
"Outdoors"
|
|
]
|
|
],
|
|
"default": "mapbox://styles/mapbox/streets-v9",
|
|
"description": "Base layer map style"
|
|
},
|
|
"clustering_radius": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "Clustering Radius",
|
|
"default": "60",
|
|
"choices": [
|
|
[
|
|
"0",
|
|
"0"
|
|
],
|
|
[
|
|
"20",
|
|
"20"
|
|
],
|
|
[
|
|
"40",
|
|
"40"
|
|
],
|
|
[
|
|
"60",
|
|
"60"
|
|
],
|
|
[
|
|
"80",
|
|
"80"
|
|
],
|
|
[
|
|
"100",
|
|
"100"
|
|
],
|
|
[
|
|
"200",
|
|
"200"
|
|
],
|
|
[
|
|
"500",
|
|
"500"
|
|
],
|
|
[
|
|
"1000",
|
|
"1000"
|
|
]
|
|
],
|
|
"description": "The radius (in pixels) the algorithm uses to define a cluster. Choose 0 to turn off clustering, but beware that a large number of points (>1000) will cause lag."
|
|
},
|
|
"point_radius": {
|
|
"type": "SelectField",
|
|
"label": "Point Radius",
|
|
"default": "Auto",
|
|
"description": "The radius of individual points (ones that are not in a cluster). Either a numerical column or `Auto`, which scales the point based on the largest cluster"
|
|
},
|
|
"point_radius_unit": {
|
|
"type": "SelectField",
|
|
"label": "Point Radius Unit",
|
|
"default": "Pixels",
|
|
"choices": [
|
|
[
|
|
"Pixels",
|
|
"Pixels"
|
|
],
|
|
[
|
|
"Miles",
|
|
"Miles"
|
|
],
|
|
[
|
|
"Kilometers",
|
|
"Kilometers"
|
|
]
|
|
],
|
|
"description": "The unit of measure for the specified point radius"
|
|
},
|
|
"global_opacity": {
|
|
"type": "TextField",
|
|
"label": "Opacity",
|
|
"default": 1,
|
|
"isFloat": true,
|
|
"description": "Opacity of all clusters, points, and labels. Between 0 and 1."
|
|
},
|
|
"viewport_zoom": {
|
|
"type": "TextField",
|
|
"label": "Zoom",
|
|
"isFloat": true,
|
|
"default": 11,
|
|
"description": "Zoom level of the map",
|
|
"places": 8
|
|
},
|
|
"viewport_latitude": {
|
|
"type": "TextField",
|
|
"label": "Default latitude",
|
|
"default": 37.772123,
|
|
"isFloat": true,
|
|
"description": "Latitude of default viewport",
|
|
"places": 8
|
|
},
|
|
"viewport_longitude": {
|
|
"type": "TextField",
|
|
"label": "Default longitude",
|
|
"default": -122.405293,
|
|
"isFloat": true,
|
|
"description": "Longitude of default viewport",
|
|
"places": 8
|
|
},
|
|
"render_while_dragging": {
|
|
"type": "CheckboxField",
|
|
"label": "Live render",
|
|
"default": true,
|
|
"description": "Points and clusters will update as viewport is being changed"
|
|
},
|
|
"mapbox_color": {
|
|
"type": "SelectField",
|
|
"freeForm": true,
|
|
"label": "RGB Color",
|
|
"default": "rgb(0, 122, 135)",
|
|
"choices": [
|
|
[
|
|
"rgb(0, 139, 139)",
|
|
"Dark Cyan"
|
|
],
|
|
[
|
|
"rgb(128, 0, 128)",
|
|
"Purple"
|
|
],
|
|
[
|
|
"rgb(255, 215, 0)",
|
|
"Gold"
|
|
],
|
|
[
|
|
"rgb(69, 69, 69)",
|
|
"Dim Gray"
|
|
],
|
|
[
|
|
"rgb(220, 20, 60)",
|
|
"Crimson"
|
|
],
|
|
[
|
|
"rgb(34, 139, 34)",
|
|
"Forest Green"
|
|
]
|
|
],
|
|
"description": "The color for points and clusters in RGB"
|
|
},
|
|
"ranges": {
|
|
"type": "TextField",
|
|
"label": "Ranges",
|
|
"default": "",
|
|
"description": "Ranges to highlight with shading"
|
|
},
|
|
"range_labels": {
|
|
"type": "TextField",
|
|
"label": "Range labels",
|
|
"default": "",
|
|
"description": "Labels for the ranges"
|
|
},
|
|
"markers": {
|
|
"type": "TextField",
|
|
"label": "Markers",
|
|
"default": "",
|
|
"description": "List of values to mark with triangles"
|
|
},
|
|
"marker_labels": {
|
|
"type": "TextField",
|
|
"label": "Marker labels",
|
|
"default": "",
|
|
"description": "Labels for the markers"
|
|
},
|
|
"marker_lines": {
|
|
"type": "TextField",
|
|
"label": "Marker lines",
|
|
"default": "",
|
|
"description": "List of values to mark with lines"
|
|
},
|
|
"marker_line_labels": {
|
|
"type": "TextField",
|
|
"label": "Marker line labels",
|
|
"default": "",
|
|
"description": "Labels for the marker lines"
|
|
},
|
|
"filters": {
|
|
"type": "FilterField",
|
|
"label": "",
|
|
"default": [],
|
|
"description": ""
|
|
},
|
|
"having_filters": {
|
|
"type": "FilterField",
|
|
"label": "",
|
|
"default": [],
|
|
"description": ""
|
|
},
|
|
"slice_id": {
|
|
"type": "HiddenField",
|
|
"label": "Slice ID",
|
|
"hidden": true,
|
|
"description": "The id of the active slice"
|
|
}
|
|
}
|
|
} |