Skip to content

Commit 3cc3f1a

Browse files
authored
Merge pull request #689 from neo4j-labs/feature/ikea-fixes-alternative
Extended Bar chart with new features (style fixes, legend, actions)
2 parents b56215e + 1cc26e3 commit 3cc3f1a

File tree

16 files changed

+514
-223
lines changed

16 files changed

+514
-223
lines changed

docs/modules/ROOT/pages/user-guide/reports/bar-chart.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ image::barstacked.png[Basic Table]
3939
|Show Legend |on/off |off |If enabled, shows a legend at the top right
4040
of the visualization.
4141

42-
|Grouping |on/off |off |If enabled, lets users specify a third, grouping
43-
field. This is used to distinguish between different groups in the
44-
stacked bar chart.
42+
|Custom Dimensions |on/off |off |If enabled, the chart will no longer autofit to the size of the report card. If width extends beyond the report card, a scroll bar will be introduced to explore the chart horizontally.
4543

4644
|Value Scale |List |linear |When set to symlog, uses a Symmetric
4745
logarithmic scale instead of the default linear scale.
@@ -98,7 +96,16 @@ label on top of the visualization (if enabled).
9896
|Auto-run query |on/off |on |when activated automatically runs the query
9997
when the report is displayed. When set to `off', the query is displayed
10098
and will need to be executed manually.
99+
101100
|Report Description |markdown text | | When specified, adds another button the report header that opens a pop-up. This pop-up contains the rendered markdown from this setting.
101+
102+
|Bar Width |number |10 |*Only active when 'Custom Dimensions' is on.* The width of each bar. Increasing the bar width will increase the width of the chart. This setting will have the largest influence on the width of the chart.
103+
104+
|Expand Height For Legend |on/off |off |Useful for when the legend has many labels. When enabled the chart height will adjust to the number of rows returned by the query and therefore will prevent legend labels being cut off.
105+
106+
|Inner Padding |number |0 |When specified, will add padding between any grouped elements.
107+
108+
|Legend Position |Vertical/Horizontal |Vertical |Will dictate whether the lagend is displayed vertically on the right hand side of the chart or horizontally on the bottom of the chart.
102109
|===
103110

104111
== Rule-Based Styling

gallery/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
},
2323
"include": [
2424
"src"
25-
]
25+
],
2626
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"keywords": [],
3636
"author": "Neo4j Labs",
3737
"dependencies": {
38+
"babel-runtime": "^6.26.0",
3839
"@azure/openai": "^1.0.0-beta.2",
3940
"@codemirror/lang-markdown": "^6.1.1",
4041
"@dnd-kit/core": "^6.0.8",

0 commit comments

Comments
 (0)