Skip to content

Commit

Permalink
[MIM-1970] Added responsive config for right y axis in highcharts (#2780
Browse files Browse the repository at this point in the history
)

added responsive config for right y axis
  • Loading branch information
annesiri authored Jun 6, 2024
1 parent 1832744 commit 73928b6
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions src/main/resources/lib/ssb/parts/highcharts/graph/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,36 @@ export const createDefaultConfig = (highchartData, displayName, language) => ({
text: '',
},
},
yAxis: {
labels: {
align: 'left',
x: -10,
y: -1,
style: {
fontSize: '10px',
yAxis: [
// overrides left y axis
{
labels: {
align: 'right',
x: -3,
y: -1,
style: {
fontSize: '10px',
},
},
title: {
text: isEnabled('highcharts-y-axix-title-mobile', true, 'ssb') ? highchartData.yAxisTitle : '',
},
},
title: {
text: isEnabled('highcharts-y-axix-title-mobile', true, 'ssb') ? highchartData.yAxisTitle : '',
// overrides right y axis
{
labels: {
align: 'left',
x: 3,
y: -1,
style: {
fontSize: '10px',
},
},
title: {
text: isEnabled('highcharts-y-axix-title-mobile', true, 'ssb') ? highchartData.yAxisTitle : '',
},
},
},
],
},
},
],
Expand Down

0 comments on commit 73928b6

Please sign in to comment.