Skip to main content

PointStyle

Namespace: Wisej.Web.Ext.ChartJS4

Assembly: Wisej.Web.Ext.ChartJS4 (4.1.0.0)

Provides constant values for Chart.js point styles.

public static class PointStyle

Use these constants with properties that map to the Chart.js pointStyle option, such as PointStyle. Chart.js also accepts an image or canvas object for this option.

Example:

chart.DataSets.Add(new LineDataSet
{
Label = "Targets",
Data = new object[] { 4, 7, 5 },
PointStyle = PointStyle.Star,
PointRadius = 8
});

Fields​

NameTypeDescriptionValue
CircleStringCircle point ("circle"). This is the Chart.js default.
CrossStringCross (plus sign) point ("cross").
CrossRotStringCross rotated by 45 degrees, i.e. an X ("crossRot").
DashStringDash point, a short line starting at the point center ("dash").
FalseStringIntended to disable point rendering ("false").
LineStringHorizontal line point ("line").
RectStringRectangle point ("rect").
RectRotStringRectangle rotated by 45 degrees, i.e. a diamond ("rectRot").
RectRoundedStringRectangle with rounded corners ("rectRounded").
StarStringStar point ("star").
TriangleStringTriangle point ("triangle").