diff --git a/davis_one/davis.cpp b/davis_one/davis.cpp index 56a6740..4e07ab8 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, layout, config); +Plotly.newPlot('gd', data); %13 @@ -584,7 +584,7 @@ function updateBackground(select) { default: console.log('uknown option'); } } - Plotly.newPlot('gd', data, layout, config); + Plotly.newPlot('gd', data); } 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, layout, config); + Plotly.newPlot('gd', data); console.log('Toggle button state:', isActive); }); )davis_delimeter"; diff --git a/plotly_maker/html_parts.cpp b/plotly_maker/html_parts.cpp index fa7beb0..b626da4 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, layout, config); +Plotly.newPlot('gd', data); %13 @@ -547,7 +547,7 @@ function updateBackground(select) { default: console.log('uknown option'); } } - Plotly.newPlot('gd', data, layout, config); + Plotly.newPlot('gd', data); } 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, layout, config); + Plotly.newPlot('gd', data); console.log('Toggle button state:', isActive); }); )davis_delimeter";