2021-02-05 18:22:23 +00:00
|
|
|
---
|
|
|
|
title: oh-category-axis - Category Axis
|
|
|
|
component: oh-category-axis
|
|
|
|
label: Category Axis
|
|
|
|
description: Reference documentation for the oh-category-axis component
|
|
|
|
source: https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-category-axis.md
|
2021-03-01 14:42:17 +00:00
|
|
|
prev: /docs/ui/components/
|
2021-02-05 18:22:23 +00:00
|
|
|
---
|
|
|
|
|
2021-02-05 14:16:35 +00:00
|
|
|
# oh-category-axis - Category Axis
|
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- Put a screenshot here if relevant:
|
|
|
|
![](./images/oh-category-axis/header.jpg)
|
|
|
|
-->
|
|
|
|
|
|
|
|
[[toc]]
|
|
|
|
|
|
|
|
<!-- Note: you can overwrite the definition-provided description and add your own intro/additional sections instead -->
|
|
|
|
<!-- DO NOT REMOVE the following comments if you intend to keep the definition-provided description -->
|
2021-02-05 14:16:35 +00:00
|
|
|
<!-- GENERATED componentDescription -->
|
|
|
|
|
|
|
|
<!-- GENERATED /componentDescription -->
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- DO NOT REMOVE the following comments -->
|
2021-02-05 14:16:35 +00:00
|
|
|
<!-- GENERATED props -->
|
2021-03-01 14:42:17 +00:00
|
|
|
### General
|
|
|
|
<div class="props">
|
|
|
|
<PropGroup label="General">
|
|
|
|
<PropBlock type="TEXT" name="name" label="Name">
|
|
|
|
<PropDescription>
|
|
|
|
A name which will appear on tooltips and labels
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="TEXT" name="categoryType" label="Categories" required="true">
|
|
|
|
<PropDescription>
|
|
|
|
Type of categories to display
|
|
|
|
</PropDescription>
|
|
|
|
<PropOptions>
|
|
|
|
<PropOption value="hour" label="Minutes of hour" />
|
|
|
|
<PropOption value="day" label="Hours of day" />
|
|
|
|
<PropOption value="week" label="Days of week" />
|
|
|
|
<PropOption value="month" label="Days of month" />
|
|
|
|
<PropOption value="year" label="Months of year" />
|
|
|
|
</PropOptions>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="TEXT" name="weekdayFormat" label="Weekday Format" required="true">
|
|
|
|
<PropDescription>
|
|
|
|
Format of weekdays labels
|
|
|
|
</PropDescription>
|
|
|
|
<PropOptions>
|
|
|
|
<PropOption value="default" label="Long (default)" />
|
|
|
|
<PropOption value="short" label="Short" />
|
|
|
|
<PropOption value="min" label="Minimal" />
|
|
|
|
</PropOptions>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="BOOLEAN" name="startonSunday" label="Start Week on Sunday">
|
|
|
|
<PropDescription>
|
|
|
|
Check to start the week on Sundays instead of Mondays
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="TEXT" name="monthFormat" label="Month Format" required="true">
|
|
|
|
<PropDescription>
|
|
|
|
Format of months labels
|
|
|
|
</PropDescription>
|
|
|
|
<PropOptions>
|
|
|
|
<PropOption value="default" label="Long (default)" />
|
|
|
|
<PropOption value="short" label="Short" />
|
|
|
|
</PropOptions>
|
|
|
|
</PropBlock>
|
|
|
|
</PropGroup>
|
|
|
|
</div>
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
### Name Display
|
|
|
|
<div class="props">
|
|
|
|
<PropGroup name="nameDisplay" label="Name Display">
|
|
|
|
<PropBlock type="TEXT" name="nameLocation" label="Name Location">
|
|
|
|
<PropDescription>
|
|
|
|
Location of axis name
|
|
|
|
</PropDescription>
|
|
|
|
<PropOptions>
|
|
|
|
<PropOption value="start" label="Start" />
|
|
|
|
<PropOption value="center" label="Center" />
|
|
|
|
<PropOption value="end" label="End (default)" />
|
|
|
|
</PropOptions>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="INTEGER" name="nameGap" label="Name Gap">
|
|
|
|
<PropDescription>
|
|
|
|
Gap between axis name and axis line.
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="TEXT" name="nameRotate" label="Name Rotate">
|
|
|
|
<PropDescription>
|
|
|
|
Rotation of axis name
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
</PropGroup>
|
|
|
|
</div>
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
### Axis and Coordinate System Assignments
|
|
|
|
<div class="props">
|
|
|
|
<PropGroup name="componentRelations" label="Axis and Coordinate System Assignments">
|
|
|
|
<PropBlock type="INTEGER" name="gridIndex" label="Grid Index" context="chartGrid">
|
|
|
|
<PropDescription>
|
|
|
|
The index of the grid for this axis
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
<PropBlock type="INTEGER" name="gridIndex" label="Grid Index" context="chartGrid">
|
|
|
|
<PropDescription>
|
|
|
|
The index of the grid for this axis
|
|
|
|
</PropDescription>
|
|
|
|
</PropBlock>
|
|
|
|
</PropGroup>
|
|
|
|
</div>
|
2021-02-05 14:16:35 +00:00
|
|
|
|
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- GENERATED /props -->
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- If applicable describe how properties are forwarded to a underlying component from Framework7, ECharts, etc.:
|
|
|
|
### Inherited Properties
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
-->
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- If applicable describe the slots recognized by the component and what they represent:
|
|
|
|
### Slots
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
#### `default`
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
The contents of the oh-category-axis.
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
-->
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- Add as many examples as desired - put the YAML in a details container when it becomes too long (~150/200+ lines):
|
|
|
|
## Examples
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
### Example 1
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
![](./images/oh-category-axis/example1.jpg)
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
```yaml
|
|
|
|
component: oh-category-axis
|
|
|
|
config:
|
|
|
|
prop1: value1
|
|
|
|
prop2: value2
|
|
|
|
```
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
### Example 2
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
![](./images/oh-category-axis/example2.jpg)
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
::: details YAML
|
|
|
|
```yaml
|
|
|
|
component: oh-category-axis
|
|
|
|
config:
|
|
|
|
prop1: value1
|
|
|
|
prop2: value2
|
|
|
|
slots
|
|
|
|
```
|
|
|
|
:::
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
-->
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
<!-- Try to clean up URLs to the forum (https://community.openhab.org/t/<threadID>[/<postID>] should suffice)
|
|
|
|
## Community Resources
|
2021-02-05 14:16:35 +00:00
|
|
|
|
2021-03-01 14:42:17 +00:00
|
|
|
- [Community Post 1](https://community.openhab.org/t/12345)
|
|
|
|
- [Community Post 2](https://community.openhab.org/t/23456)
|
|
|
|
-->
|