From ad54ce8c5ed932fef786058eb38afd7f0d0b6431 Mon Sep 17 00:00:00 2001 From: Connor Cameron Date: Tue, 16 Apr 2024 15:54:46 -0600 Subject: [PATCH] working histogram. need to fix y axis rendering issue. #224 --- dev/core/lis-histogram-element.html | 52 +++++++++++++++++++++++++++++ src/core/lis-histogram-element.ts | 4 +-- 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 dev/core/lis-histogram-element.html diff --git a/dev/core/lis-histogram-element.html b/dev/core/lis-histogram-element.html new file mode 100644 index 00000000..33d1ec1d --- /dev/null +++ b/dev/core/lis-histogram-element.html @@ -0,0 +1,52 @@ + + + + + + + LIS Web-Components - <lis-modal-element> + + + + + + + + + + + + +
+

<lis-histogram-element>

+

+ The <lis-histogram-element> the <lis-simple-table-element> web component. + See the source code and documentation for details. +

+
+ +
+ + + + + + + diff --git a/src/core/lis-histogram-element.ts b/src/core/lis-histogram-element.ts index 03857356..73869e36 100644 --- a/src/core/lis-histogram-element.ts +++ b/src/core/lis-histogram-element.ts @@ -84,8 +84,8 @@ export class LisHistogramElement extends LitElement { const svgContainer = d3 .select(this._histogramContainerRef.value) .append('svg') - .attr('width', 500) - .attr('height', 500); + .attr('width', 600) + .attr('height', 600); const x = d3 .scaleBand()