Skip to content

Commit 5dae201

Browse files
authored
Merge pull request #8 from babrar/bugfix/redraw-on-theme-change
fix sidebar full-redraw on theme change
2 parents 6f42aa0 + f45bcfc commit 5dae201

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/ObsidianVault/assets/javascripts/interactive_graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ $.getJSON(document.currentScript.src + '/../graph.json', function (graph) {
147147

148148
$("#__palette_0").change(function(){
149149
option.backgroundColor = $("body").css("background-color");
150-
myChart.setOption(option);
150+
draw_graph_sidebar(myChart);
151151
});
152152
$("#__palette_1").change(function(){
153153
option.backgroundColor = $("body").css("background-color");
154-
myChart.setOption(option);
154+
draw_graph_sidebar(myChart);
155155
});
156156

157157
$('#graph_button').on('click', function (params) {

0 commit comments

Comments
 (0)