Skip to content

Marks labels colors #145

@cocaybica

Description

@cocaybica

How to change the label colors for marks? I have this:

this.markers = {
     "270": {
       "color": "red",
       "size": 8,
       "label": "270",
       "type": "line"
     },
     "380": {
       "color": "red",
       "size": 8,
       "label": "380",
       "type": "line"
     },
     "420": {
       "color": "red",
       "size": 8,
       "label": "420",
       "type": "line"        
     }
   }
 }

The result is:
Captura desde 2023-03-29 14-29-12

Lines are shown but all labels are black.

And then if I change to this:

this.markers = {
     "270": {
       "color": "green",
       "size": 8,
       "label": "270",
       "type": "line"
     },
     "380": {
       "color": "yellow",
       "size": 8,
       "label": "380",
       "type": "line"
     },
     "420": {
       "color": "red",
       "size": 8,
       "label": "420",
       "type": "triangle"        
     }
   }
 }

The labels are now shown but all in red color:

Captura desde 2023-03-29 14-32-34

There is an issue related to marks position already reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions