Skip to content

Commit

Permalink
wired bug axes plotted under figure
Browse files Browse the repository at this point in the history
  • Loading branch information
goranbs committed Jul 10, 2023
1 parent 937647f commit 97be174
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
20 changes: 0 additions & 20 deletions frontend-dev/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions frontend-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
"dependencies": {
"@aknakos/sveltekit-plotly": "^0.0.9",
"@fontsource/ibm-plex-sans": "^5.0.3",
"@types/plotly.js-dist-min": "^2.3.1",
"graphql-request": "^6.1.0",
"keycloak-js": "^21.1.1",
"plotly.js-dist-min": "^2.24.3",
"svelte-feather-icons": "^4.0.1"
}
}
11 changes: 5 additions & 6 deletions frontend-dev/src/routes/visualizations/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<svelte:head>
<script src="https://cdn.plot.ly/plotly-latest.min.js" type="text/javascript"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</svelte:head>


<script lang="ts">
//import { PlotlyLib } from '@aknakos/sveltekit-plotly/store';
//import { Plotly } from 'plotly.js-dist-min';
import { afterUpdate, onMount } from 'svelte';
import { modeCurrent } from '@skeletonlabs/skeleton';
Expand Down Expand Up @@ -45,15 +44,15 @@
layout.xaxis = {title: 'time (s)'};
layout.yaxis = {title: 'CPU'};
let p1 = new Plotly.newPlot(plot1, {"data": data, "layout": layout, "config": config});
console.log(plot1)
console.log(plot1.id)
};
const drawPlot2 = () => {
let plot2 = document.getElementById('plot2');
layout.xaxis = {title: 'time (s)'};
layout.yaxis = {title: 'Memory'};
let p2 = new Plotly.newPlot(plot2, {"data": [trace2], "layout": layout, "config": config});
console.log(plot2)
console.log(plot2.id)
};
onMount(() => {
Expand All @@ -64,7 +63,7 @@
afterUpdate(() => {
drawPlot1();
drawPlot2();
console.log(`changed textcolor to ${textcolor}`)
console.log(`changed plot textcolor to ${textcolor}`)
});
</script>
Expand Down

0 comments on commit 97be174

Please sign in to comment.