Avalonia solo in codiceEnglish

API › RAVAL

RBarChart class

Il riferimento e' in inglese: viene dai commenti del sorgente di RAVAL, che dalla 2.0 ha nomi e commenti in inglese.

public sealed class RBarChart : Control

A bar chart drawn by hand.

Costruttori

RBarChart()

An empty chart.

Proprietà

List<string> Categories { get; }

The names under the groups of bars.

List<RBarSeries> Series { get; }

The series, one color each.

bool Stacked { get; set; }

Whether the bars of a category stand one on the other.

bool ShowValues { get; set; }

Whether each bar writes its value (true).

string TitleY { get; set; }

The title of the axis, above it.

string Unit { get; set; }

The unit after the values on the bars (with the SI prefix).

double Fill { get; set; }

The part of a category taken by its bars (0.75).

CultureInfo Culture { get; set; }

How the numbers are written (invariant: the point).

string BackgroundKey { get; set; }

The theme resource of the background.

string GridKey { get; set; }

The theme resource of the grid.

string InkKey { get; set; }

The theme resource of the texts and of the axis.

double TextSize { get; set; }

The size of the texts.

Rect PlotArea { get; }

The area of the bars in the last drawing.

Metodi

Rect BarRect(int series, int category)

The rectangle of a bar in the last drawing (empty if there is none).

void SavePng(string path, double widthCm = 14, double heightCm = 8, double dpi = 300)

Saves the chart as PNG, the given centimetres wide and high at the given dpi (RImage).

void Render(DrawingContext ctx)

Draws grid, axis, bars, values, categories and legend.