[example][sm] - fix line chart

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-04-18 14:18:57 -03:00
parent 39ceabc370
commit a5275956f4
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import { Vega as VegaOg } from "react-vega"; import { Vega as VegaOg } from "react-vega";
export default function Vega(props) { export default function Vega(props) {
return <VegaOg {...props} />; console.log(props)
return <VegaOg id="fsfd" className="w-full" {...props} />;
} }

View File

@@ -1,4 +1,4 @@
import { VegaLite as VegaOg } from "react-vega"; import { VegaLite as VegaOg } from "react-vega";
export default function Vega(props) { export default function Vega(props) {
return <VegaOg {...props} />; return <VegaOg className="w-full" {...props} />;
} }

View File

@@ -14,7 +14,7 @@ export function convertSimpleToVegaLite(view, resource) {
tooltip: true, tooltip: true,
}, },
title: view.title, title: view.title,
width: "container", width: 500,
height: 300, height: 300,
selection: { selection: {
grid: { grid: {