Skip to content
Snippets Groups Projects
Commit 196b21b5 authored by Cee Nell's avatar Cee Nell
Browse files

updating translation of the y axis labels

parent 54f779f6
No related branches found
No related tags found
1 merge request!84Always update selectedLanguage on route change
......@@ -109,6 +109,8 @@ const bubbleCheckboxEndText = computed(() => t('text.components.chartText.bubble
const bubbleTooltipText = computed(() => t('text.components.chartText.bubbleText'));
const bubbleLegendText = computed(() => t('text.components.chartText.bubbleLegend'));
const bubbleYAxisText = computed(() => t('text.components.chartText.bubbleYaxis'));
const bubbleYlabelMax = computed(() => t('text.components.chartText.bubbleYlabelMax'));
const bubbleYlabelMin = computed(() => t('text.components.chartText.bubbleYlabelMin'));
// Labels for each category
const demographicText = computed(() => t('text.components.chartText.bubbleLabels.Demographiccharacteristics'));
......@@ -256,14 +258,14 @@ function createBeeswarmChart() {
.attr("text-anchor", "left")
.attr("font-weight", 700)
.attr("transform", `translate(${margin.left}, ${margin.top / 2})`)
.text(t('text.components.chartText.bubbleYlabelMax'));
.text(bubbleYlabelMax.value);
svg.append('text')
.attr("class", "yLabel")
.attr("text-anchor", "left")
.attr("font-weight", 700)
.attr("transform", `translate(${margin.left}, ${containerHeight - (margin.bottom / 2) + 10})`)
.text(t('text.components.chartText.bubbleYlabelMin'));
.text(bubbleYlabelMin.value);
// Set forces
const forceY = d3.forceY(d => yScale(d.level_agreement)).strength(0.9);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment