Syncfusion Feedback


Overview

ASP.NET Core Bubble chart is like scatter chart, but allows you to visualize data in 3 dimensions. The size of the bubble is determined based on the third parameter.


Customizing each point in bubble

Appearance of each data point in a bubble chart can be customized using point render event to differentiate each point based on the size.


Data label

Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.


ASP.NET Core Bubble Chart Code Example

Easily get started with ASP.NET Core Bubble Chart using a few simple lines of C# code example as demonstrated below. Also explore our ASP.NET Core Bubble Chart Example that shows you how to render and configure the chart.

  1. <ejs-chart id="container">
  2. <e-chart-primaryxaxis valueType="Category">
  3. </e-chart-primaryxaxis>
  4. <e-series-collection>
  5. <e-series name="series1" size="yValue1" xName="xValue" yName="yValue" dataSource="ViewBag.dataSource"
  6. type="@Syncfusion.EJ2.Charts.ChartSeriesType.Bubble">
  7. </e-series>
  8. </e-series-collection>
  9. </ejs-chart>
  1. public class HomeController : Controller
  2. {
  3. public ActionResult Index()
  4. {
  5. List<ChartData> chartData = new List<ChartData>
  6. {
  7. new ChartData { xValue = "2014", yValue = 21, yValue1 = 21 },
  8. new ChartData { xValue = "2015", yValue = 24, yValue1 = 31},
  9. new ChartData { xValue = "2016", yValue = 36, yValue1 = 14 },
  10. new ChartData { xValue = "2017", yValue = 38, yValue1 = 31 },
  11. new ChartData { xValue = "2018", yValue = 54, yValue1 = 11 },
  12. new ChartData { xValue = "2019", yValue = 57, yValue1 = 24 },
  13. new ChartData { xValue = "2020", yValue = 70, yValue1 = 16 },
  14. };
  15. ViewBag.dataSource = chartData;
  16. return View();
  17. }
  18. }
  19. public class ChartData
  20. {
  21. public string xValue;
  22. public double yValue;
  23. public double yValue1;
  24. }

Learning Resources

UG

Bubble Chart User Guide

Learn the available options to customize ASP.NET Core bubble chart.

API

Bubble Chart API Reference

Explore the ASP.NET Core bubble chart APIs.

90+ ASP.NET CORE UI CONTROLS

Scroll up icon
Chat with us