Merge pull request #960 from datopian/bugfix/linechart-width
[@portaljs/components,line chart][xs]: fix linechart width
This commit is contained in:
5
.changeset/brown-chairs-breathe.md
Normal file
5
.changeset/brown-chairs-breathe.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@portaljs/components': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix width of the <LineChart /> component
|
||||||
@@ -35,7 +35,7 @@ export function LineChart({
|
|||||||
const spec = {
|
const spec = {
|
||||||
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
||||||
title,
|
title,
|
||||||
width: 600,
|
width: 'container',
|
||||||
height: 300,
|
height: 300,
|
||||||
mark: {
|
mark: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
|
|||||||
Reference in New Issue
Block a user