Skip to content

Commit

Permalink
boxplot title styling #12
Browse files Browse the repository at this point in the history
  • Loading branch information
keckelt committed Apr 23, 2021
1 parent 813514c commit 68953d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion dist/measure_visualization/BoxPlot.js

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

2 changes: 1 addition & 1 deletion dist/measure_visualization/BoxPlot.js.map

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

8 changes: 7 additions & 1 deletion src/measure_visualization/BoxPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class BoxPlot implements IMeasureVisualization {
const spec: VegaLiteSpec = {
'$schema': 'https://vega.github.io/schema/vega-lite/v4.json',
data: {values: this.formatData(setParameters)},
title: setParameters.setBDesc.label,
title: {
text: setParameters.setBDesc.label,
limit: 400, dx: -100
},
width: 'container',
mark: {
type: 'boxplot',
Expand Down Expand Up @@ -59,6 +62,9 @@ export class BoxPlot implements IMeasureVisualization {
header: {
titleFontSize: 16, titleFontWeight: 500, titleFont: 'Yantramanav',
labelFontSize: 12, labelLimit: 200, labelFont: 'Yantramanav'
},
title: {
fontSize: 16, fontWeight: 500, font: 'Yantramanav',
}
}
};
Expand Down

0 comments on commit 68953d9

Please sign in to comment.