Skip to content

Commit

Permalink
✨ use bold labels for highlighted entities
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 10, 2024
1 parent ff37d6b commit fdd2d37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,12 @@ export class LineLegend extends React.Component<LineLegendProps> {
}

@computed.struct get sizedLabels(): SizedSeries[] {
const { fontSize, fontWeight, maxWidth } = this
const { fontSize, maxWidth } = this
const maxTextWidth = maxWidth - DEFAULT_CONNECTOR_LINE_WIDTH
const maxAnnotationWidth = Math.min(maxTextWidth, 150)

return this.props.labelSeries.map((label) => {
const fontWeight = label.focus?.active ? 700 : this.fontWeight
const mainLabel = { text: label.label, fontWeight }
const valueLabel = label.formattedValue
? {
Expand Down

0 comments on commit fdd2d37

Please sign in to comment.