@@ -49,48 +49,43 @@ Get started any way you want
4949| Charts: Radar chart | [ Demos] ( https://chartjs.blazorexpress.com/demos/radar-chart ) | [ Docs] ( https://chartjs.blazorexpress.com/docs/radar-chart ) |
5050| Charts: Scatter chart | [ Demos] ( https://chartjs.blazorexpress.com/demos/scatter-chart ) | [ Docs] ( https://chartjs.blazorexpress.com/docs/scatter-chart ) |
5151
52- ## Combo bar/line
53-
54- ` BarChart ` and ` LineChart ` both support mixed bar/line datasets. Add ` BarChartDataset ` and ` LineChartDataset ` instances to the same ` ChartData.Datasets ` collection and initialize either chart component as the root chart.
55-
56- ``` razor
57- <BarChart @ref="chart" Width="600" />
58-
59- @code {
60- private BarChart chart = default!;
61- private readonly BarChartOptions options = new()
62- {
63- Responsive = true,
64- Interaction = new Interaction { Mode = InteractionMode.Index, Intersect = false },
65- };
66-
67- private readonly ChartData chartData = new()
68- {
69- Labels = new List<string> { "January", "February", "March" },
70- Datasets = new List<IChartDataset>
71- {
72- new BarChartDataset
73- {
74- Label = "Revenue",
75- Data = new List<double?> { 65, 59, 80 },
76- },
77- new LineChartDataset
78- {
79- Label = "Target",
80- Data = new List<double?> { 50, 55, 60 },
81- },
82- },
83- };
84-
85- protected override async Task OnAfterRenderAsync(bool firstRender)
86- {
87- if (firstRender)
88- await chart.InitializeAsync(chartData, options);
89- }
90- }
91- ```
92-
93- Use ` LineChart ` the same way when you want the line configuration to be the root chart type.
52+ ## Screenshots
53+
54+ ### Bar chart
55+
56+ <img width =" 627 " height =" 372 " alt =" image " src =" https://github.com/user-attachments/assets/eb2ee933-92f4-4505-9ffe-a07ebcc81b10 " />
57+
58+ <img width =" 614 " height =" 315 " alt =" image " src =" https://github.com/user-attachments/assets/f4936bbc-9ebc-469e-828b-94078c8df9ee " />
59+
60+ ### Bubble Chart
61+
62+ <img width =" 627 " height =" 374 " alt =" image " src =" https://github.com/user-attachments/assets/35da28e4-8e28-488b-8110-fb704399e18a " />
63+
64+ ### Doughnut Chart
65+
66+ <img width =" 627 " height =" 672 " alt =" image " src =" https://github.com/user-attachments/assets/69226e90-a12d-40de-9993-3a2df1f06978 " />
67+
68+ ### Line Chart
69+
70+ <img width =" 626 " height =" 318 " alt =" image " src =" https://github.com/user-attachments/assets/40da8b8d-e88a-4b34-a9a4-99a8a1bcec7c " />
71+
72+ <img width =" 610 " height =" 320 " alt =" image " src =" https://github.com/user-attachments/assets/61d56847-2cd1-44d3-8916-777c331a1b62 " />
73+
74+ ### Pie Chart
75+
76+ <img width =" 628 " height =" 626 " alt =" image " src =" https://github.com/user-attachments/assets/88889e02-3149-4a16-afe6-288eabf69daa " />
77+
78+ ### PolarArea Chart
79+
80+ <img width =" 617 " height =" 669 " alt =" image " src =" https://github.com/user-attachments/assets/5c3d6004-1de1-4a83-a05b-63bb5cb64a57 " />
81+
82+ ### Radar Chart
83+
84+ <img width =" 626 " height =" 671 " alt =" image " src =" https://github.com/user-attachments/assets/2d2f7989-08d7-4f6f-b33a-dbbca1fde74b " />
85+
86+ ### Scatter Chart
87+
88+ <img width =" 939 " height =" 531 " alt =" image " src =" https://github.com/user-attachments/assets/47de0935-afb0-4c6d-ad8b-a1c5195b3e30 " />
9489
9590More components coming...
9691
0 commit comments