# me.jgs.pix.pixels

> One year of pixels for a graph. The record key is '<graphId>:<yyyy>'.

- Kind: record
- Record key: any
- Authority: pix.jgs.me
- Lexicon: 1
- Published by [jgs.me](https://lexicon.garden/identity/did:plc:v6nn36co2lrr6b3pyuniy2jh), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.pixels)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.pixels/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.pixels/analytics)

## Record (`me.jgs.pix.pixels`)

Type: record · key any

### Properties

- `entries` (array, required)
  - Constraints: maxLength: 366
  - `items` (ref)
    - Reference: `#entry`
- `graph` (string · tid, required): Graph ID; the record key of a me.jgs.pix.graph record in the same repo.
- `updatedAt` (string · datetime)
- `year` (integer, required)
  - Constraints: minimum: 1, maximum: 9999

## #entry (`me.jgs.pix.pixels#entry`)

Type: object

### Properties

- `date` (string, required): yyyyMMdd
  - Constraints: minLength: 8, maxLength: 8
- `quantity` (string, required): Decimal number as a string; Lexicon has no float type.
  - Constraints: maxLength: 32

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "date": {
          "description": "yyyyMMdd",
          "maxLength": 8,
          "minLength": 8,
          "type": "string"
        },
        "quantity": {
          "description": "Decimal number as a string; Lexicon has no float type.",
          "maxLength": 32,
          "type": "string"
        }
      },
      "required": [
        "date",
        "quantity"
      ],
      "type": "object"
    },
    "main": {
      "description": "One year of pixels for a graph. The record key is '<graphId>:<yyyy>'.",
      "key": "any",
      "record": {
        "properties": {
          "entries": {
            "items": {
              "ref": "#entry",
              "type": "ref"
            },
            "maxLength": 366,
            "type": "array"
          },
          "graph": {
            "description": "Graph ID; the record key of a me.jgs.pix.graph record in the same repo.",
            "format": "tid",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "year": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "graph",
          "year",
          "entries"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "me.jgs.pix.pixels",
  "lexicon": 1
}
```
