# Marker Gauge Examples

**Visualization Reference:** undefined

## Basic Marker Gauge

- **Key:** Basic

```json
{
  "context": {},
  "options": {},
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Background Color - Light Blue

- **Key:** Background Color

```json
{
  "context": {},
  "options": {
    "backgroundColor": "#ADD8E6"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Gauge Ranges: negative 10 to 40 - Cyan

- **Key:** Ranges Single Step

```json
{
  "context": {},
  "options": {
    "gaugeRanges": [
      {
        "from": -10,
        "to": 40,
        "value": "#00FFFF"
      }
    ]
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Gauge Ranges: 0 to 10 - Cyan, 10 to 20 - Orange, 20 to 30 - Green, 30 to 40 - Light Blue

- **Key:** Ranges Multiple Step

```json
{
  "context": {},
  "options": {
    "gaugeRanges": [
      {
        "from": 0,
        "to": 10,
        "value": "#00FFFF"
      },
      {
        "from": 10,
        "to": 20,
        "value": "#FFA500"
      },
      {
        "from": 20,
        "to": 30,
        "value": "#008000"
      },
      {
        "from": 30,
        "to": 40,
        "value": "#ADD8E6"
      }
    ]
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Label Display - Percentage

- **Key:** Percentage Range

```json
{
  "context": {},
  "options": {
    "labelDisplay": "percentage"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Label Display - Off

- **Key:** No Labels

```json
{
  "context": {},
  "options": {
    "labelDisplay": "off"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Major Tick Interval - 10

- **Key:** Major Unit

```json
{
  "context": {},
  "options": {
    "majorTickInterval": 10
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Orientation - Horizontal

- **Key:** Horizontal

```json
{
  "context": {},
  "options": {
    "orientation": "horizontal"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Value Display - Percentage

- **Key:** Percentage Value

```json
{
  "context": {},
  "options": {
    "valueDisplay": "percentage"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Value Display - Off

- **Key:** No Value

```json
{
  "context": {},
  "options": {
    "valueDisplay": "off"
  },
  "dataSources": {
    "primary": {
      "requestParams": {
        "offset": 0,
        "count": 20
      },
      "data": {
        "fields": [
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "20"
          ]
        ]
      },
      "meta": {
        "totalCount": 100
      }
    }
  }
}
```

## Trellis

- **Key:** Trellis

```json
{
  "context": {},
  "options": {
    "splitByLayout": "trellis",
    "trellisSplitBy": "component"
  },
  "dataSources": {
    "primary": {
      "data": {
        "fields": [
          {
            "name": "component",
            "groupby_rank": "0"
          },
          {
            "name": "count"
          }
        ],
        "columns": [
          [
            "Database",
            "API",
            "Cache",
            "Queue",
            "Frontend",
            "Backend"
          ],
          [
            "78",
            "65",
            "82",
            "91",
            "73",
            "88"
          ]
        ]
      },
      "meta": {}
    }
  }
}
```
