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

Implement feature: settings - dark theme for charts #8

Open
DylanCope opened this issue Feb 23, 2022 · 4 comments
Open

Implement feature: settings - dark theme for charts #8

DylanCope opened this issue Feb 23, 2022 · 4 comments

Comments

@DylanCope
Copy link

Is it possible to change the theme of the plot? Preferably to "plotly_dark"

@emiltb
Copy link

emiltb commented Apr 26, 2022

I don't know if the original author is still working on the project. I would also very much like the plugin to integrate more natively with the current theme in obsidian. I have forked the project here (https://github.com/emiltb/obsidian-plotly) and will try to come up with a solution.

@efemkay
Copy link

efemkay commented Jul 29, 2022

@emiltb any luck on the dark mode?

@emiltb
Copy link

emiltb commented Aug 11, 2022

@emiltb any luck on the dark mode?

All god intentions from my side, but I ran into some quirks the last time I worked on it that stopped me in my track. I might pick it up again at some point, but I don't have the time right now.

@sfdrada
Copy link

sfdrada commented Aug 7, 2023

Here's how you can do it, just customize what colors you want to set your chart:

data:
- x: [0, 1, 2]
  y: [0, 1, 0]
  line:
    color: 'rgb(255, 255, 255)' # Line color (white)
    width: 2 # Line width
  marker:
    color: 'rgb(0, 150, 255)' # Marker color (blue)
    size: 8 # Marker size
  mode: 'lines+markers' # Display both lines and markers
layout:
  paper_bgcolor: 'rgb(17, 17, 17)' # Dark background color
  plot_bgcolor: 'rgb(17, 17, 17)' # Dark plot area color
  font:
    color: 'rgb(255, 255, 255)' # Font color (white)
  xaxis:
    color: 'rgb(255, 255, 255)' # X-axis color (white)
    gridcolor: 'rgb(102, 102, 102)' # X-axis grid color (gray)
  yaxis:
    color: 'rgb(255, 255, 255)' # Y-axis color (white)
    gridcolor: 'rgb(102, 102, 102)' # Y-axis grid color (gray)

@Dmytro-Shulha Dmytro-Shulha changed the title Dark Mode Possible? Implement feature: settings - dark theme for charts Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants