diff --git a/davis_one/davis.cpp b/davis_one/davis.cpp index d29c8bc..b2a5755 100644 --- a/davis_one/davis.cpp +++ b/davis_one/davis.cpp @@ -395,7 +395,7 @@ var config = { plotlyServerURL: "https://chart-studio.plotly.com" }; -Plotly.newPlot('gd', data); +Plotly.newPlot('gd', data, layout, config); %13 @@ -584,7 +584,7 @@ function updateBackground(select) { default: console.log('uknown option'); } } - Plotly.newPlot('gd', data); + Plotly.newPlot('gd', data, layout, config); } document.addEventListener('DOMContentLoaded', function() { @@ -752,7 +752,7 @@ const char kAverageButtonJsFooBlock[] = R"davis_delimeter( const isActive = toggleButton.classList.contains('active'); stateText.textContent = `Average: ${isActive ? 'ON' : 'OFF'}`; if(isActive){temp = data; data = average;}else{data = temp;}; - Plotly.newPlot('gd', data); + Plotly.newPlot('gd', data, layout, config); console.log('Toggle button state:', isActive); }); )davis_delimeter"; diff --git a/plotly_maker/html_parts.cpp b/plotly_maker/html_parts.cpp index b626da4..fa7beb0 100644 --- a/plotly_maker/html_parts.cpp +++ b/plotly_maker/html_parts.cpp @@ -358,7 +358,7 @@ var config = { plotlyServerURL: "https://chart-studio.plotly.com" }; -Plotly.newPlot('gd', data); +Plotly.newPlot('gd', data, layout, config); %13 @@ -547,7 +547,7 @@ function updateBackground(select) { default: console.log('uknown option'); } } - Plotly.newPlot('gd', data); + Plotly.newPlot('gd', data, layout, config); } document.addEventListener('DOMContentLoaded', function() { @@ -715,7 +715,7 @@ const char kAverageButtonJsFooBlock[] = R"davis_delimeter( const isActive = toggleButton.classList.contains('active'); stateText.textContent = `Average: ${isActive ? 'ON' : 'OFF'}`; if(isActive){temp = data; data = average;}else{data = temp;}; - Plotly.newPlot('gd', data); + Plotly.newPlot('gd', data, layout, config); console.log('Toggle button state:', isActive); }); )davis_delimeter";