Skip to content

Commit

Permalink
Added legend position to preserved settings
Browse files Browse the repository at this point in the history
Legend position is preserved when the chart structure changes.
  • Loading branch information
andy-lee-eng committed May 27, 2019
1 parent 63aa22e commit a3ca216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/perspective-viewer-d3fc/src/js/plugin/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class D3FCChartElement extends HTMLElement {

// Some settings can be preserved even when the chart schema changes
const preserved = oldSettings && {
multiTypes: oldSettings.multiTypes
multiTypes: oldSettings.multiTypes,
legend: oldSettings.legend && {left: oldSettings.legend.left, top: oldSettings.legend.top}
};
return {...preserved, ...newSettings};
}
Expand Down

0 comments on commit a3ca216

Please sign in to comment.