Skip to content

Commit

Permalink
handle identical set labels in boxplots #12
Browse files Browse the repository at this point in the history
  • Loading branch information
keckelt committed Apr 22, 2021
1 parent 2547949 commit 9b2ccf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 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.

3 changes: 2 additions & 1 deletion src/measure_visualization/BoxPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export class BoxPlot implements IMeasureVisualization {
const setAValid = setParameters.setA.filter((item) => {return (item !== undefined) && (item !== null) && (!Number.isNaN(item));});
const colorA = setParameters.setADesc?.color || setParameters.setACategory?.color || '#EFEFEF';

const labelB = setParameters.setBCategory?.label || '';
let labelB = setParameters.setBCategory?.label || '';
labelB = '​'+labelB; // add zero width space
const setBValid = setParameters.setB.filter((item) => {return (item !== undefined) && (item !== null) && (!Number.isNaN(item));});
const colorB = setParameters.setBDesc?.color || setParameters.setBCategory?.color || '#EFEFEF';

Expand Down

0 comments on commit 9b2ccf7

Please sign in to comment.