Form

GPALChart

Everything on Settings Every Control Takes applies here too. GPAL.Chart builds one. WithTitle sets the title drawn above it, WithPalette the color palette it draws with, and WithSeries adds a data series. Click and DoubleClick are wired the usual way, and a chart also answers the drag events, DragDrop, DragEnter, DragLeave and DragOver. GPAL.ChartFor(title) is the shorthand.

Examples

GPAL Fluent: High-level fluent C# API

//The Series is a Windows Forms chart series, so anything that library can draw is available; GPAL hands it through rather than wrapping it.

GPALChart throughput = (GPALChart)GPAL.Chart

.WithTitle("Pages per minute")

.WithPalette(ChartColorPalette.Bright)

.WithHeight(240)

.WithName("throughput");


Series series = new Series("Pages") { ChartType = SeriesChartType.Line };

series.Points.AddXY("09:00", 42);

series.Points.AddXY("09:01", 55);


throughput.WithSeries(series);

💬 Ask GPAL