Skip to content

Commit 5955f48

Browse files
committed
Merge branch 'develop' of github.com:nielsdejong/graph-based-search-engine into develop
2 parents 61f1718 + 6a461cf commit 5955f48

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
NeoDash is a lightweight web app to create Neo4j dashboards.
33
Writing Cypher is all that's required to build your first dashboard in minutes. Want to give NeoDash a spin right away? Try it here: https://nielsdejong.nl/neodash/.
44

5+
You can also install NeoDash on Neo4j Desktop from the [Graph App Gallery](https://install.graphapp.io/).
6+
57
### Features
68
- Live reporting on a Neo4j database with a table, graph view, bar chart or line chart.
79
- Interactively select parameters to be used as query parameters.

src/card/report/NeoBarChartReport.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class NeoBarChartReport extends NeoReport {
4949
xShift += (maxY < 0 || minY < 0) ? 10 : 0;
5050
var yShift = 20 + xTextLength * 4;
5151
var width = props.clientWidth - 100; //-90 + props.width * 105 - xShift * 0.5;
52-
var height = -140 + props.height * 100 - yShift;
53-
var margin = {top: 0, right: 0, bottom: yShift, left: xShift};
52+
var height = -160 + props.height * 100 - yShift
53+
var margin = {top: 10, right: 0, bottom: yShift, left: xShift};
5454

5555
var svg = d3.select(".chart" + id)
5656
.attr("width", width + margin.left + margin.right)
@@ -74,7 +74,7 @@ class NeoBarChartReport extends NeoReport {
7474
.style("text-anchor", "end");
7575

7676
var y = d3.scaleLinear()
77-
.domain([minY - (maxY - minY) * 0.1, maxY + (maxY - minY) * 0.1])
77+
.domain([minY, maxY])
7878
.range([height, 0]);
7979
svg.append("g")
8080
.call(d3.axisLeft(y));

0 commit comments

Comments
 (0)