Skip to content
Snippets Groups Projects
Commit e0ed7d24 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

dynamic width

parent 86351141
No related branches found
No related tags found
No related merge requests found
Pipeline #119270 passed with stages
in 8 minutes and 40 seconds
......@@ -69,6 +69,8 @@ const computedWidth = computed(() => {
return Math.max(currentWidth, 550);
});
const allHits: Ref<Record<string, any> | undefined> = ref(undefined)
onMounted(async () => {
const params = {
......@@ -193,12 +195,10 @@ function namesToAccessionChips(names: string[]) {
}
const systemPanel: Ref<string[]> = ref([])
const layoutPlot: Ref<string> = ref("grid")
const binPlotOptions = ref({
marginLeft: 150,
marginBottom: 200,
padding: 0,
width: 1920,
grid: true,
x: { tickRotate: 90, tip: true, },
......@@ -209,6 +209,8 @@ const binPlotDataOptions = computed(() => {
const toValueAllHits = toValue(allHits)
return toValueAllHits?.hits?.length > 0 ? {
...binPlotOptions.value,
width: width.value,
color: {
...binPlotOptions.value.color,
type: scaleType.value
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment