diff --git a/site/examples/general/interval/demo/column-minHeight.ts b/site/examples/general/interval/demo/column-minHeight.ts index 848e77f378..e6dfaa4e4c 100644 --- a/site/examples/general/interval/demo/column-minHeight.ts +++ b/site/examples/general/interval/demo/column-minHeight.ts @@ -1,6 +1,7 @@ import { Chart } from '@antv/g2'; -const chart = new Chart({ container: 'container' }); +const chart = new Chart({ container: 'container', autoFit: true }); + chart.data([ { genre: 'Sports', sold: 0 }, { genre: 'Strategy', sold: 115 }, @@ -18,3 +19,5 @@ chart .style('draggable', true) .style('droppable', true) .style('minHeight', 50); + +chart.render(); \ No newline at end of file