Skip to content

Commit

Permalink
style: add auto resize to scatter plot
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Mar 6, 2024
1 parent 33c8844 commit c477fd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/panels/AveragesScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const AveragesScatterPlot = () => {
$schema: "https://vega.github.io/schema/vega-lite/v5.json",
data: { name: "table" },
mark: "point",
height: "container",
width: "container",
autosize: { resize: true },
encoding: {
x: {
axis: {
Expand Down Expand Up @@ -172,7 +175,7 @@ export const AveragesScatterPlot = () => {
</div>
</div>
<div className="block lg:hidden">
<Vega width={700} height={700} spec={spec} data={averages} />
<Vega width={512} height={512} spec={spec} data={averages} />
</div>
<div className="hidden lg:block">
<Vega width={1500} height={700} spec={spec} data={averages} />
Expand Down

0 comments on commit c477fd2

Please sign in to comment.