Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const legendTypeControl: ControlSetItem = {
label: t('Type'),
choices: [
['scroll', t('Scroll')],
['plain', t('Plain')],
['plain', t('List')],
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about the name, if we want to display List, maybe we should also name the option list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alexandrusoare , the change to List actually was a request from Sophie. Regarding the mapping plain value, I believe we should keep it because that is actually the echarts legend type option, this way we wouldn't affect echarts behavior

default: legendType,
renderTrigger: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,17 @@ export function getLegendProps(
break;
case LegendOrientation.Bottom:
legend.bottom = 0;
if (padding?.left) {
legend.left = padding.left;
}
break;
case LegendOrientation.Top:
legend.top = 0;
legend.right = zoomable ? TIMESERIES_CONSTANTS.legendTopRightOffset : 0;
if (padding?.left) {
legend.left = padding.left;
}
break;
default:
legend.top = 0;
legend.right = zoomable ? TIMESERIES_CONSTANTS.legendTopRightOffset : 0;
Expand Down
Loading