Skip to content
ChartForgeX

Bubble examples in C#

Bubble examples rendered by ChartForgeX: a live chart, variants in light and dark themes, the C# source and the options to configure it.

All charts DistributionsBubble

Workload, time and request volume

The interactive HTML page ChartForgeX writes for this chart. Hover for values, click legend items to hide or show series, use the keyboard to navigate, and right-click for export and reset. Where the chart can redraw a zoomed range, use the wheel to zoom, choose Pan to move the window, or choose Brush and drag to zoom to a range.

Build it in C#

This is the code for the chart above. Show setup adds the imports before it and the few lines that write SVG, PNG and HTML after it, so it reads as one program; the download is the complete console program, ready to run with the ChartForgeX package.

C# Program.cs Download
Loading source…

Variants

Options

Set these on chart.ConfigureBubble(options => …). The full list is on the ChartBubbleOptions reference page.

OptionWhat it does
SizeEncodingGets or sets the source-size encoding. The default preserves the existing square-root radius law.
SizeDimensionGets independent name, number display and numeric key options for the shared source-size measurement.
MinimumRadiusGets or sets the non-negative minimum logical reference-circle radius in pixels. Default: six.
MaximumRadiusGets or sets the non-negative maximum logical reference-circle radius in pixels. Null retains the responsive family default, bounded between 14 and 32 pixels and raised to the minimum radius when necessary. The explicit maximum must be at least MinimumRadius at preparation.
MinimumValueGets the explicit minimum source size. Null infers one domain from every bubble series.
MaximumValueGets the explicit maximum source size. Null infers one domain from every bubble series.
ReversedGets or sets whether larger source sizes map to smaller radii. Default: false.