Skip to content

Commit

Permalink
fix(Chart): display price chart in full width. ref #302
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 24, 2024
1 parent f627c17 commit b0ae8c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PriceChart.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div id="vega-lite-chart" />
<div id="vega-lite-chart" style="width:100%;" />
</template>

<script>
Expand Down Expand Up @@ -33,6 +33,7 @@ export default {
var vlSpec = {
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
description: 'A simple bar chart with embedded data.',
width: 'container',
autosize: { type: 'fit', resize: true},
data: {
values: this.priceList
Expand Down

0 comments on commit b0ae8c2

Please sign in to comment.