diff --git a/blocks/bar-graph/build/block.json b/blocks/bar-graph/build/block.json index b83f66c..c8d8e38 100644 --- a/blocks/bar-graph/build/block.json +++ b/blocks/bar-graph/build/block.json @@ -22,7 +22,11 @@ "Parent": "lcpText" } }, - "enableStacked": { + "enableStackedBars": { + "type": "boolean", + "default": false + }, + "enableDrillDown": { "type": "boolean", "default": false }, @@ -30,6 +34,18 @@ "type": "boolean", "default": false }, + "hierarchicalSource": { + "type": "string", + "default": "parent" + }, + "hierarchicalColumnOrder": { + "type": "string", + "default": "" + }, + "hierachicalDepth": { + "type": "number", + "default": 1 + }, "chartData": { "type": "array", "default": [ @@ -48,30 +64,6 @@ "Color": "#ff0000", "Content": "
Second item
", "Parent": "lcpDatapoint-1" - }, - { - "ID": "lcpDatapoint-3", - "Label": "Sample 3", - "Value": 30, - "Color": "#00ff00", - "Content": "Third item
", - "Parent": "" - }, - { - "ID": "lcpDatapoint-4", - "Label": "Sample 4", - "Value": 20, - "Color": "#0000ff", - "Content": "Fourth item
", - "Parent": "" - }, - { - "ID": "lcpDatapoint-5", - "Label": "Sample 5", - "Value": 80, - "Color": "#800080", - "Content": "Fifth item
", - "Parent": "" } ] }, @@ -111,6 +103,10 @@ "type": "boolean", "default": true }, + "legendFontSize": { + "type": "string", + "default": "16px" + }, "legendLocation": { "type": "string", "default": "top" @@ -166,6 +162,50 @@ "toolbarAlignment": { "type": "string", "default": "left" + }, + "enableDatapointTooltip": { + "type": "boolean", + "default": false + }, + "enableDatapointPopup": { + "type": "boolean", + "default": false + }, + "showXAxisLabel": { + "type": "boolean", + "default": true + }, + "xAxisLabel": { + "type": "string", + "default": "" + }, + "showYAxisLabel": { + "type": "boolean", + "default": true + }, + "yAxisLabel": { + "type": "string", + "default": "" + }, + "barsColorSource": { + "type": "string", + "default": "default" + }, + "renderXGrid": { + "type": "boolean", + "default": false + }, + "xGridColor": { + "type": "string", + "default": "blue" + }, + "renderYGrid": { + "type": "boolean", + "default": false + }, + "yGridColor": { + "type": "string", + "default": "#e0e0e0" } }, "textdomain": "lcp-visualize", diff --git a/blocks/bar-graph/build/index.asset.php b/blocks/bar-graph/build/index.asset.php index 007a41d..375735e 100644 --- a/blocks/bar-graph/build/index.asset.php +++ b/blocks/bar-graph/build/index.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '32e6baadcfdb2c5e9a4b'); + array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '97d348e4919de980ad6b'); diff --git a/blocks/bar-graph/build/index.js b/blocks/bar-graph/build/index.js index 7601da7..5268880 100644 --- a/blocks/bar-graph/build/index.js +++ b/blocks/bar-graph/build/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={415:(e,t,i)=>{const s=window.wp.blocks;var o=i(609);const n=window.wp.i18n,r=window.wp.blockEditor,a=window.wp.components,l=window.wp.element;function d(e,t){let i;if(void 0===t)for(const t of e)null!=t&&(i