Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marks labels colors #145

Open
cocaybica opened this issue Mar 29, 2023 · 1 comment
Open

Marks labels colors #145

cocaybica opened this issue Mar 29, 2023 · 1 comment

Comments

@cocaybica
Copy link

cocaybica commented Mar 29, 2023

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.

@cre8iveroom
Copy link

I would appreciate a fix for this as well. Ideally, I think all colors should be controlled via CSS classes if possible because it would make it easier to style. My use case at the moment is styling for both a light and dark theme for our site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants