I am trying to create a Choice column in my Sharepoint list. Using Graph API, this works great: https://learn.microsoft.com/en-us/graph/api/list-post-columns?view=graph-rest-1.0
However, it creates the choices with no color. I would like to create these choices as labels with colors, as shown in the screenshot below, but I can't find any way to do it either at the creation or when editing the column, in both Graph APIs or Sharepoint CSOM.
Is this even doable programmatically? Thank you.
It is doable , if you click advanced mode. Then you should fill the JSON needed for formatting columns according to your needs.
Please refer to : https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting