Charts that automatically adapt to any screen size and device
responsive="true" (default), maintainAspectRatio="true" (default)
<bx:chart title="Responsive Pie Chart"
chartwidth="600" chartheight="300"
responsive="true"
maintainAspectRatio="true">
<bx:chartseries type="pie" colorlist="FF6384,36A2EB,FFCE56,4BC0C0"
serieslabel="Market Share">
<bx:chartdata item="Product A" value="150" />
<bx:chartdata item="Product B" value="200" />
<bx:chartdata item="Product C" value="100" />
<bx:chartdata item="Product D" value="75" />
</bx:chartseries>
</bx:chart>
responsive="true", maintainAspectRatio="true", aspectRatio="3"
<bx:chart title="Wide Format Bar Chart"
chartwidth="800" chartheight="300"
responsive="true"
maintainAspectRatio="true"
aspectRatio="3"
xaxistitle="Categories" yaxistitle="Values"
showygridlines="true">
<bx:chartseries type="bar" colorlist="131cd7,ED2939,4BC0C0,d47f00"
serieslabel="Performance Metrics">
<bx:chartdata item="Q1" value="150" />
<bx:chartdata item="Q2" value="200" />
<bx:chartdata item="Q3" value="175" />
<bx:chartdata item="Q4" value="225" />
</bx:chartseries>
</bx:chart>
responsive="true", maintainAspectRatio="false"
<bx:chart title="Fill Container Chart"
chartwidth="600" chartheight="400"
responsive="true"
maintainAspectRatio="false"
xaxistitle="Time" yaxistitle="Memory Usage (MB)"
showxgridlines="true" showygridlines="true">
<bx:chartseries type="line" colorlist="9966FF" serieslabel="Memory Over Time">
<bx:chartdata item="9:00 AM" value="512" />
<bx:chartdata item="10:00 AM" value="678" />
<bx:chartdata item="11:00 AM" value="543" />
<bx:chartdata item="12:00 PM" value="721" />
<bx:chartdata item="1:00 PM" value="634" />
<bx:chartdata item="2:00 PM" value="587" />
</bx:chartseries>
</bx:chart>
responsive="true", aspectRatio="1"
<bx:chart title="Mobile-Friendly Doughnut"
chartwidth="400" chartheight="400"
responsive="true"
maintainAspectRatio="true"
aspectRatio="1"
showlegend="true">
<bx:chartseries type="doughnut"
colorlist="FF6384,36A2EB,FFCE56,4BC0C0,9966FF"
serieslabel="Mobile Stats">
<bx:chartdata item="iOS" value="45" />
<bx:chartdata item="Android" value="40" />
<bx:chartdata item="Other" value="15" />
</bx:chartseries>
</bx:chart>
responsive="false" - Chart will NOT resize on window changes
<bx:chart title="Fixed Size Chart"
chartwidth="500" chartheight="250"
responsive="false"
xaxistitle="Fixed Dimensions" yaxistitle="Values">
<bx:chartseries type="bar" colorlist="E74C3C,3498DB" serieslabel="Fixed Data">
<bx:chartdata item="Item 1" value="85" />
<bx:chartdata item="Item 2" value="92" />
<bx:chartdata item="Item 3" value="78" />
<bx:chartdata item="Item 4" value="65" />
</bx:chartseries>
</bx:chart>
responsive="true", aspectRatio="0.8"
<bx:chart title="Vertical Rankings"
chartwidth="500" chartheight="600"
responsive="true"
maintainAspectRatio="true"
aspectRatio="0.8"
xaxistitle="Score" yaxistitle="Team"
showxgridlines="true">
<bx:chartseries type="horizontalbar" colorlist="2ECC71,F39C12,E74C3C,9B59B6,3498DB"
serieslabel="Team Performance">
<bx:chartdata item="Team Alpha" value="95" />
<bx:chartdata item="Team Beta" value="88" />
<bx:chartdata item="Team Gamma" value="82" />
<bx:chartdata item="Team Delta" value="76" />
<bx:chartdata item="Team Epsilon" value="70" />
</bx:chartseries>
</bx:chart>
col-md-6 for responsive column layout
<div class="row">
<div class="col-md-6">
<bx:chart title="Left Chart - Area" responsive="true" ...>
...
</bx:chart>
</div>
<div class="col-md-6">
<bx:chart title="Right Chart - Radar" responsive="true" ...>
...
</bx:chart>
</div>
</div>
col-lg-6 for responsive 2x2 grid
<div class="row g-3">
<div class="col-lg-6">
<bx:chart title="Sales" responsive="true" ...>...</bx:chart>
</div>
<div class="col-lg-6">
<bx:chart title="Traffic" responsive="true" ...>...</bx:chart>
</div>
<div class="col-lg-6">
<bx:chart title="Performance" responsive="true" ...>...</bx:chart>
</div>
<div class="col-lg-6">
<bx:chart title="Trends" responsive="true" ...>...</bx:chart>
</div>
</div>
responsive="true|false"maintainAspectRatio="true|false"aspectRatio="1|2|3|0.8"responsive="true" for most web applicationsaspectRatio based on chart content and container sizemaintainAspectRatio="false" for dashboard cards with fixed heights