<style>
.desk {
height: 460px;
--c2-dashboard--gap: 10px;
--c2-dashboard--padding: 10px;
--c2-dashboard--background: #f1f2f4;
--c2-dashboard--border-radius: 14px;
--c2-dash-card--background: #ffffff;
--c2-dash-card--border: 1px solid #e4e4e7;
--c2-dash-card--border-radius: 10px;
--c2-dash-card__expanded--background: #ffffff;
--c2-dash-card__header--min-height: 40px;
--c2-dash-card__header--font-size: 13px;
--c2-dash-card__header--border-bottom: 1px solid #e4e4e7;
--c2-dash-card__footer--border-top: 1px solid #e4e4e7;
}
/* `body` is a part, so the pane's content area can be made to stretch whatever is inside it. */
.desk c2-dash-card::part(body) {
display: grid;
min-height: 0;
overflow: hidden;
}
.desk c2-line-chart {
--c2-chart--height: 100%;
--c2-chart--padding: 8px;
--c2-chart--background: transparent;
--c2-chart--border-top: none;
--c2-chart--border-right: none;
--c2-chart--border-bottom: none;
--c2-chart--border-left: none;
}
.desk c2-table {
width: 100%;
height: 100%;
--c2-table--border-top: none;
--c2-table--border-right: none;
--c2-table--border-bottom: none;
--c2-table--border-left: none;
--c2-table--font-size: 12px;
}
.desk c2-list {
height: 100%;
overflow: auto;
--c2-list--border-top: none;
--c2-list--border-right: none;
--c2-list--border-bottom: none;
--c2-list--border-left: none;
--c2-list--padding-top: 6px;
--c2-list--padding-bottom: 6px;
}
.desk-quote {
display: flex;
width: 100%;
justify-content: space-between;
gap: 12px;
font-size: 13px;
}
.desk-up {
color: #16a34a;
}
.desk-down {
color: #dc2626;
}
</style>
<c2-dashboard client:only="lit" class="desk" columns="260px 1fr" rows="1fr 1fr" storage-key="c2n-demo-desk">
<c2-dash-card col="1" row="1" row-span="2" min-width="200" card-id="watchlist" expand-full>
<span slot="header">Watchlist</span>
<c2-badge slot="actions" tone="success">Live</c2-badge>
<c2-list value="aapl">
<c2-list-item value="aapl"><span class="desk-quote">AAPL <span class="desk-up">+1.24%</span></span></c2-list-item>
<c2-list-item value="msft"><span class="desk-quote">MSFT <span class="desk-up">+0.62%</span></span></c2-list-item>
<c2-list-item value="nvda"><span class="desk-quote">NVDA <span class="desk-down">−2.08%</span></span></c2-list-item>
<c2-list-item value="amzn"><span class="desk-quote">AMZN <span class="desk-up">+0.41%</span></span></c2-list-item>
<c2-list-item value="tsla"><span class="desk-quote">TSLA <span class="desk-down">−1.13%</span></span></c2-list-item>
</c2-list>
<span slot="footer">5 instruments</span>
</c2-dash-card>
<c2-dash-card col="2" row="1" min-height="120" card-id="price" expand-full>
<span slot="header">AAPL · quarterly revenue</span>
<c2-icon-button slot="actions" aria-label="Refresh">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>
</c2-icon-button>
<c2-line-chart
x-field="date"
x-type="time"
curve="smooth"
points="none"
legend="none"
data='[{"date":"2023-12-30","revenue":119.575},{"date":"2024-03-30","revenue":90.753},{"date":"2024-06-29","revenue":85.777},{"date":"2024-09-28","revenue":94.93},{"date":"2024-12-28","revenue":124.3},{"date":"2025-03-29","revenue":95.359},{"date":"2025-06-28","revenue":94.036},{"date":"2025-09-27","revenue":102.466}]'
>
<c2-chart-series field="revenue" label="Revenue"></c2-chart-series>
</c2-line-chart>
<span slot="footer">USD billions · FY2024–25</span>
</c2-dash-card>
<c2-dash-card col="2" row="2" card-id="orders" expand-full>
<span slot="header">Working orders</span>
<c2-icon-button slot="controls" aria-label="Order settings">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>
</c2-icon-button>
<c2-table row-key="id" rows='[{"id":"1","symbol":"AAPL","side":"Buy","qty":1200,"limit":214.5,"status":"Working"},{"id":"2","symbol":"NVDA","side":"Sell","qty":400,"limit":118.2,"status":"Working"},{"id":"3","symbol":"MSFT","side":"Buy","qty":250,"limit":402.1,"status":"Partial"},{"id":"4","symbol":"TSLA","side":"Sell","qty":900,"limit":241,"status":"Working"},{"id":"5","symbol":"AMZN","side":"Buy","qty":150,"limit":186.75,"status":"Queued"}]'>
<c2-table-column field="symbol" header="Symbol" width="100px"></c2-table-column>
<c2-table-column field="side" header="Side" width="80px"></c2-table-column>
<c2-table-column field="qty" header="Qty" width="1fr" align="end" format="number"></c2-table-column>
<c2-table-column field="limit" header="Limit" width="1fr" align="end" format="number"></c2-table-column>
<c2-table-column field="status" header="Status" width="110px"></c2-table-column>
</c2-table>
<span slot="footer">5 orders · updated 14:32</span>
</c2-dash-card>
</c2-dashboard>