Reference > Properties > NoteStyle Property

SharpPlot.NoteStyle Property

Set Note style to any combination of flags.

public NoteStyles NoteStyle {get; set;}

Example

sp.NoteStyle = NoteStyles.Boxed;

Normally, notes are positioned relative to the current (x,y) axes (style ‘Relative’) but you can choose to use absolute coordinates here, in which case you give the position of the note in Points from the chart origin (the position where the axes would normally cross). For multi-line notes, the position gives the start of the baseline of the first line of the text unless you set it explicitly with styles such as Middle|Center which will use the note-boundingbox as a reference to compute the center.

To include a defined effect (such as an SVG shadow filter or animation) to the text:

sp.AddEffect(ScriptTarget.Notes,"<animate .... />"

You can add multiple effects to apply several filters or animations to the note. This could be used to have a note slide in from the side, then change colour or fade out.

Options

AbsoluteAbsolute (pts) values given for note position
BaselineBaselined note box (on first line of text)
BottomBottom-aligned note box
BoxedBoxed notes
CenterAlignCenter aligned note box
CroppedEliminates entire note if text will be clipped
MiddleMiddle-aligned note box
OpaqueOpaque text for notes
PercentagePercentage of chart area used for note position
RightAlignRight aligned note box
RoundedRounded box
ShadowedShadowed box
TopAlignTop aligned note box

See also ...

SharpPlot Members | DrawNote Method


Send comments on this topic
© Dyalog Ltd 2013