- Resource: DashboardChart
- ChartDatasource
- Visualization
- Axis
- AxisType
- Series
- SeriesType
- SeriesStackStrategy
- Encode
- Tooltip
- ToolTipTrigger
- Legend
- LegendOrient
- LegendAlign
- ColumnDef
- Methods
Resource: DashboardChart
DashboardChart resource. NEXT TAG: 7
JSON representation |
---|
{ "name": string, "display_name": string, "description": string, "native_dashboard": string, "chart_datasource": { object ( |
Fields | |
---|---|
name |
Output only. Name of the dashboardChart. |
display_name |
Required. Display name/Title of the dashboardChart visible to users. |
description |
Optional. Description of the dashboardChart. |
native_dashboard |
Output only. NativeDashboard this chart belongs to. |
chart_datasource |
Required. Query and datasource used in the chart. |
visualization |
|
ChartDatasource
Datasource of the chart including the query reference and source name.
JSON representation |
---|
{
"dashboard_query": string,
"data_sources": [
enum ( |
Fields | |
---|---|
dashboard_query |
Reference to dashboard query resource used in the chart. |
data_sources[] |
Name of the datasource used in the chart. |
Visualization
Visualization config for a chart. https://echarts.apache.org/en/option.html#series LINT.IfChange
JSON representation |
---|
{ "x_axes": [ { object ( |
Fields | |
---|---|
x_axes[] |
|
y_axes[] |
|
series[] |
|
tooltip |
|
legends[] |
|
column_defs[] |
Column Definition to represent chart as a table. |
Axis
JSON representation |
---|
{
"axis_type": enum ( |
Fields | |
---|---|
axis_type |
|
display_name |
|
AxisType
Enums | |
---|---|
AXIS_TYPE_UNSPECIFIED |
|
VALUE |
|
CATEGORY |
|
TIME |
|
LOG |
Series
JSON representation |
---|
{ "series_type": enum ( |
Fields | |
---|---|
series_type |
|
series_name |
|
show_symbol |
|
show_background |
|
stack |
|
series_stack_strategy |
|
encode |
|
label |
|
field |
|
SeriesType
Enums | |
---|---|
SERIES_TYPE_UNSPECIFIED |
|
LINE |
|
BAR |
|
PIE |
|
TEXT |
SeriesStackStrategy
Enums | |
---|---|
SERIES_STACK_STRATEGY_UNSPECIFIED |
|
SAMESIGN |
|
ALL |
|
POSITIVE |
|
NEGATIVE |
Encode
JSON representation |
---|
{ "x": string, "y": string, "value": string, "item_name": string } |
Fields | |
---|---|
x |
|
y |
|
value |
For some type of series that are not in any coordinate system, like 'pie' |
item_name |
This is useful in charts like 'pie', where data item name can be displayed in legend. |
Tooltip
JSON representation |
---|
{
"show": boolean,
"tooltip_trigger": enum ( |
Fields | |
---|---|
show |
|
tooltip_trigger |
|
ToolTipTrigger
Enums | |
---|---|
TOOLTIP_TRIGGER_UNSPECIFIED |
|
TOOLTIP_TRIGGER_NONE |
|
TOOLTIP_TRIGGER_ITEM |
|
TOOLTIP_TRIGGER_AXIS |
Legend
JSON representation |
---|
{ "id": string, "show": boolean, "z_level": integer, "z": integer, "left": integer, "top": integer, "right": integer, "bottom": integer, "legend_orient": enum ( |
Fields | |
---|---|
id |
|
show |
|
z_level |
|
z |
|
left |
|
top |
|
right |
|
bottom |
|
legend_orient |
|
legend_align |
|
padding[] |
|
LegendOrient
Enums | |
---|---|
LEGEND_ORIENT_UNSPECIFIED |
|
VERTICAL |
|
HORIZONTAL |
LegendAlign
Enums | |
---|---|
LEGEND_ALIGN_UNSPECIFIED |
|
AUTO |
|
LEFT |
|
RIGHT |
ColumnDef
Column Definition.
JSON representation |
---|
{ "field": string, "header": string } |
Fields | |
---|---|
field |
Field key in data. |
header |
Header name for column. |
Methods |
|
---|---|
|
Get dashboard charts in batches. |
|
Get a dashboard chart. |
|
List all dashboard charts. |