Back to view formats
View formattingSharePoint Online

Timeline in Board View

This sample demonstrates displaying timelines in Board View.

Timeline in Board View
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

View formatting
Download JSON
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/board-formatting.schema.json",
  "hideSelection": true,
  "formatter": {
    "elmType": "div",
    "style": {
      "display": "flex",
      "justify-content": "center",
      "align-items": "flex-start",
      "width": "100%"
    },
    "children": [
      {
        "elmType": "div",
        "style": {
          "display": "flex",
          "flex-direction": "column",
          "border-left": "10px solid",
          "padding-left": "18px",
          "margin-top": "1px",
          "width": "85%",
          "position": "relative"
        },
        "children": [
          {
            "elmType": "div",
            "txtContent": "[$Title]",
            "inlineEditField": "[$Title]",
            "style": {
              "font-weight": "bold",
              "font-size": "20px"
            }
          },
          {
            "elmType": "div",
            "txtContent": "[$Description]",
            "inlineEditField": "[$Description]",
            "style": {
              "padding-top": "10px",
              "padding-bottom": "10px"
            }
          }
        ]
      },
      {
        "elmType": "div",
        "style": {
          "width": "30px",
          "height": "30px",
          "border-radius": "50%",
          "position": "absolute",
          "left": "-1%"
        },
        "attributes": {
          "class": "ms-bgColor-themePrimary"
        }
      }
    ]
  }
}

From the contributor

How to use this sample

Summary

This sample demonstrates displaying timelines in Board View.

screenshot of the sample

View requirements

Type Internal Name Required
Single line of text Title Yes
Multiple lines of text Description
Choice Month
  • You need to use Board View.

Sample

Solution Author(s)
timeline-board.json Tetsuya Kawahara

Version history

Version Date Comments
1.0 March 5, 2022 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.