Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::PieChart.
A widget that displays timeseries data as a pie or a donut.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chart_type
def chart_type() -> ::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType) — Required. Indicates the visualization type for the PieChart.
#chart_type=
def chart_type=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType) — Required. Indicates the visualization type for the PieChart.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType) — Required. Indicates the visualization type for the PieChart.
#data_sets
def data_sets() -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>) — Required. The queries for the chart's data.
#data_sets=
def data_sets=(value) -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>
Parameter
- value (::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>) — Required. The queries for the chart's data.
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>) — Required. The queries for the chart's data.
#show_labels
def show_labels() -> ::Boolean
Returns
- (::Boolean) — Optional. Indicates whether or not the pie chart should show slices' labels
#show_labels=
def show_labels=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Indicates whether or not the pie chart should show slices' labels
Returns
- (::Boolean) — Optional. Indicates whether or not the pie chart should show slices' labels