You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <strong>Combo bar/line</strong> demo mixes <code>BarChartDataset</code> and <code>LineChartDataset</code> in the same <code>BarChart</code>.
38
+
<br /><br />
39
+
<strong>How to use:</strong>
40
+
<divclass="content">
41
+
<ol>
42
+
<li>Use the <code>BarChart</code> component as the root chart.</li>
43
+
<li>Add both <code>BarChartDataset</code> and <code>LineChartDataset</code> instances to the same <code>ChartData.Datasets</code> collection.</li>
44
+
<li>Configure interaction options such as <code>Mode = InteractionMode.Index</code> and <code>Intersect = false</code> for a combined tooltip experience.</li>
45
+
<li>Refer to the demo code below for a working example with bar columns and a line overlay.</li>
<SectionClass="p-0"Size="HeadingSize.H4"Name="Horizontal bar chart"PageUrl="@pageUrl"Link="horizontal-bar-chart">
36
53
<Block>
37
54
The <strong>Horizontal Bar Chart</strong> displays data values as horizontal bars, making it ideal for comparing categories with long labels or when you want to emphasize comparison between values.
The <strong>Combo bar/line</strong> demo mixes <code>LineChartDataset</code> and <code>BarChartDataset</code> in the same <code>LineChart</code>.
43
+
<br /><br />
44
+
<strong>How to use:</strong>
45
+
<divclass="content">
46
+
<ol>
47
+
<li>Use the <code>LineChart</code> component as the root chart.</li>
48
+
<li>Add both <code>LineChartDataset</code> and <code>BarChartDataset</code> instances to the same <code>ChartData.Datasets</code> collection.</li>
49
+
<li>Configure interaction options such as <code>Mode = InteractionMode.Index</code> and <code>Intersect = false</code> so bar and line points share tooltips cleanly.</li>
50
+
<li>Refer to the demo code below for a working example with a line series and bar columns in the same chart area.</li>
0 commit comments