-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(legend): multiline labels with maxLines option #1285
Changes from 8 commits
aff29d4
477f611
b60160f
5b2bc29
bec8643
1859545
d6fb516
fcd45ca
88ebac5
bdee07e
d8be979
6800bc2
5959a18
575b6da
697f73d
f796ae3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1147,6 +1147,11 @@ export interface LegendColorPickerProps { | |
// @public (undocumented) | ||
export type LegendItemListener = (series: SeriesIdentifier[]) => void; | ||
|
||
// @public (undocumented) | ||
export interface LegendLabelOptions { | ||
multiline: boolean; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In partition chart, not for the legend, we use a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah so you are thinking change There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done here d8be979 |
||
} | ||
|
||
// @public | ||
export type LegendPath = LegendPathElement[]; | ||
|
||
|
@@ -1204,6 +1209,7 @@ export type LegendStrategy = $Values<typeof LegendStrategy>; | |
// @public (undocumented) | ||
export interface LegendStyle { | ||
horizontalHeight: number; | ||
labelOptions?: LegendLabelOptions; | ||
margin: number; | ||
spacingBuffer: number; | ||
verticalWidth: number; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes knob to align with correct
vAlign
andhAlign
properties.