forked from signalfx/signalfx-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_legend_options.go
18 lines (16 loc) · 1.12 KB
/
model_legend_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
* Charts API
*
* An API for creating, retrieving, updating, and deleting charts
*
* API version: 2.0.1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package chart
// Determines if a legend should be displayed, and if so which dimension to show in the legend.<br> **Note** Only available if the options.type property is set to TimeSeriesChart.
type LegendOptions struct {
// Specifies the dimension to show in the legend. You should ensure the dimension exists and has different values for each set of datapoints in the chart.<br> **Note** Only available if `options.type` is `TimeSeriesChart`.
DimensionInLegend string `json:"dimensionInLegend,omitempty"`
// Determines if SignalFx should display a legend with the chart. If `true`, a legend is displayed below the chart. This legend lists the each value of the dimension specified in the `options.onChartLegendsOptions.dimensionInLegend` property. Next to each value is the color of the data point that has that dimension value in the chart.<br> **Note** Only available if `options.type` is `TimeSeriesChart'.
ShowLegend bool `json:"showLegend,omitempty"`
}