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

Legend points difficult to see #2745

Closed
joshua-gould opened this issue Jun 19, 2018 · 3 comments
Closed

Legend points difficult to see #2745

joshua-gould opened this issue Jun 19, 2018 · 3 comments

Comments

@joshua-gould
Copy link
Contributor

When the marker size is small, it is difficult to read the colors in the legend-https://codepen.io/anon/pen/gKoNjN. A workaround is to scale the legend using the css:

<style> .layers { transform: scale(5) translate(-16px, 0) } </style>

However, when saving the plot as a png, the legend is not scaled. A possible solution is to add a scale factor field to the legend: {scaleFactor:5, font:{size:10}}. What do you think? Thanks.

@etpinard
Copy link
Contributor

etpinard commented Jun 26, 2018

Thanks for writing in. This ticket is similar to #2080 and personally I'd vote for solution like:

{
  x: [/* */],
  y: [/* */],
  legenditem: {
    textfont: {
       color: 'red'
     },
     marker: {
       size: 20
     }
  }
}

similar to what was proposed in #1701 (comment)


We should probably merge this ticket, #1701 and #2080 together.

@nicolaskruchten
Copy link
Contributor

I would favour a larger default minimum personally...

@etpinard
Copy link
Contributor

etpinard commented Apr 5, 2019

Merging into #3727

@etpinard etpinard closed this as completed Apr 5, 2019
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

3 participants