You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A huge chunk of styling the charts is applying styles to the axes. While depending on personal preferences, this is more or less the same process every time for the respective chart types. Adding a few templates can greatly reduce bulk styling work done on axes.
This issue seems a little more important now that interactive notebook development will most likely take place in VSCode, where many people use dark themes that make the standard plot style seem very out of place:
I would suggest introducing a Chart.withTheme extension that is part of a seperate theme module. I will have a go at this.
I implemented chart templates using the templating engine that plotly.js is using internally. It is basically an object containing a layout and data(trace array) that will apply the style properties to the plots via the Chart.withTemplate function. Presets are available in the ChartTemplates module. Here is an example that shows darkmode usage in a dotnet interactive notebook in vscode:
Activity
kMutagene commentedon Jun 15, 2020
related : #30
kMutagene commentedon Dec 10, 2020
This issue seems a little more important now that interactive notebook development will most likely take place in VSCode, where many people use dark themes that make the standard plot style seem very out of place:
I would suggest introducing a
Chart.withThemeextension that is part of a seperate theme module. I will have a go at this.kMutagene commentedon Dec 11, 2020
I implemented chart templates using the templating engine that plotly.js is using internally. It is basically an object containing a
layoutanddata(trace array)that will apply the style properties to the plots via theChart.withTemplatefunction. Presets are available in theChartTemplatesmodule. Here is an example that shows darkmode usage in a dotnet interactive notebook in vscode:fix light axis templates