diff --git a/force-app/main/default/lwc/chartBuilder/chartBuilder.html b/force-app/main/default/lwc/chartBuilder/chartBuilder.html index 55548e15..daa8759e 100644 --- a/force-app/main/default/lwc/chartBuilder/chartBuilder.html +++ b/force-app/main/default/lwc/chartBuilder/chartBuilder.html @@ -22,26 +22,30 @@ > - + - - diff --git a/force-app/main/default/lwc/chartBuilder/chartBuilder.js b/force-app/main/default/lwc/chartBuilder/chartBuilder.js index 5abd72b0..706ac011 100644 --- a/force-app/main/default/lwc/chartBuilder/chartBuilder.js +++ b/force-app/main/default/lwc/chartBuilder/chartBuilder.js @@ -9,12 +9,9 @@ import { import getChartData from '@salesforce/apex/ChartBuilderController.getChartData'; const RADIAL_TYPE = [POLARAREA_CHART_TYPE, RADAR_CHART_TYPE]; +const CIRCULAR_TYPE = [DOUGHNUT_CHART_TYPE, PIE_CHART_TYPE]; -const DIMENSIONABLE_TYPES = [ - DOUGHNUT_CHART_TYPE, - PIE_CHART_TYPE, - ...RADIAL_TYPE -]; +const DIMENSIONABLE_TYPES = [...CIRCULAR_TYPE, ...RADIAL_TYPE]; export default class ChartBuilder extends LightningElement { containerClass = ChartBuilder.DEFAULT_CSS_CLASS; @@ -148,6 +145,10 @@ export default class ChartBuilder extends LightningElement { } } + get isCircular() { + return CIRCULAR_TYPE.includes(this.type); + } + get isRadial() { return RADIAL_TYPE.includes(this.type); }