Browse Source

Tidyup

master
cmack 6 years ago
parent
commit
ad75a142ea
  1. 14
      packages/builder/src/components/userInterface/temporaryPanelStructure.js
  2. 9
      packages/standard-components/src/Chart/Legend.svelte

14
packages/builder/src/components/userInterface/temporaryPanelStructure.js

@ -498,14 +498,14 @@ export default {
control: ModelSelect, control: ModelSelect,
}, },
{ {
label: "Keep Last Hover", label: "Animate Chart",
key: "hasLastHoverSliceHighlighted", key: "isAnimated",
valueKey: "checked", valueKey: "checked",
control: Checkbox, control: Checkbox,
}, },
{ {
label: "Is Animated", label: "Keep Last Hover",
key: "isAnimated", key: "hasLastHoverSliceHighlighted",
valueKey: "checked", valueKey: "checked",
control: Checkbox, control: Checkbox,
}, },
@ -553,12 +553,6 @@ export default {
valueKey: "checked", valueKey: "checked",
control: Checkbox, control: Checkbox,
}, },
{
label: "Show Legend",
key: "useLegend",
valueKey: "checked",
control: Checkbox,
},
{ {
label: "Horizontal Legend", label: "Horizontal Legend",
key: "horizontalLegend", key: "horizontalLegend",

9
packages/standard-components/src/Chart/Legend.svelte

@ -47,6 +47,10 @@
legend.highlightByEntryId(highlightByEntryId) legend.highlightByEntryId(highlightByEntryId)
} }
if (notNull(isHorizontal)) {
legend.isHorizontal(isHorizontal)
}
if (notNull(margin)) { if (notNull(margin)) {
legend.margin(margin) legend.margin(margin)
} }
@ -70,11 +74,6 @@
} }
} }
$: if (notNull(isHorizontal)) {
debugger
legend.isHorizontal(isHorizontal)
}
const legendClass = `legend-container` const legendClass = `legend-container`
</script> </script>

Loading…
Cancel
Save