diff options
author | bobzel <zzzman@gmail.com> | 2023-04-10 13:49:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-10 13:49:28 -0400 |
commit | 6520bb8594b6cee9a4df09b25adf7aa590ef29e4 (patch) | |
tree | 1d5d865b8f2de6eb91d02bbb1734c889b0c2e8e3 /src/client/views/nodes/DataVizBox/components/LineChart.tsx | |
parent | 68c6c36af823255824a6b0692e8c33618c2d7ca2 (diff) |
fixed linechart margins
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/LineChart.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/components/LineChart.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/LineChart.tsx b/src/client/views/nodes/DataVizBox/components/LineChart.tsx index bc9f0be77..ecb06f64f 100644 --- a/src/client/views/nodes/DataVizBox/components/LineChart.tsx +++ b/src/client/views/nodes/DataVizBox/components/LineChart.tsx @@ -235,8 +235,8 @@ export class LineChart extends React.Component<LineChartProps> { const svg = (this._lineChartSvg = d3 .select(this._lineChartRef.current) .append('svg') - .attr('width', `${width + margin.right + margin.left}`) - .attr('height', `${height + margin.top + margin.bottom}`) + .attr('width', `${width - margin.right - margin.left}`) + .attr('height', `${height - margin.top - margin.bottom}`) .append('g') .attr('transform', `translate(${margin.left}, ${margin.top})`)); |