Quantcast
Channel: wpftoolkit Wiki Rss Feed
Viewing all articles
Browse latest Browse all 892

Updated Wiki: Charts

$
0
0

Charts

Only available in the Plus Edition

Derives from Control

Chart control is designed to display rich, flexible, configurable and extendable charts. Wpf Chart is 100% look-less control. Chart is able to display multiple areas with multiple charts at the same time. Use Areas property to add Area objects. Chart supports build-in legend. However, if custom legend needed to be displayed, Use Legend property to apply custom legend to chart.

chart.jpg

Properties

Property Description
Areas Gets list of Area
Legend Gets or sets Chart Legend.
ShowLegend Gets or sets if chart legend is visible.

Events

Event Description
SeriesChanged Raised when Series list in any Area is changed.


Area

Derives from Panel

Used to display charts and a grid with axes and labels.

Properties

Property Description
Title Gets or sets Area title.
XAxis Gets or sets X axis.
YAxis Gets or sets Y axis.
Series Gets or sets list of Series
LayoutBounds Gets layout bounds for series interior.
BackgroundTemplate Gets or sets data template for grid representation.


Methods

Method Description
GetSeriesLayoutBounds() Calculates layout bounds without tick and tittle labels.
Invalidate() Invalidates Area and all it's children.
GetActualPoint( Point point ) Converts point in user logic coordinates into actual pixels point.
GetActualPoint( DataPoint point ) Converts DataPoint into actual pixels point.
HighlightSeries( Series series, bool highlighted ) Sets highlighted state for specified series.


Events

Event Description
LegendRefresh Raised when need legend items refresh.


Series

Derives from DependencyObject

Displays a list of DataPoint primitives in an Area of a Chart.

Properties

Property Description
ShowHintLabels Gets or Sets, show hint labels for series elements or not.
ShowPointsInLegend If true, DataPoints from this Series are displayed in legend.
IsOwnerHighlight Gets or Sets, is this Series performing highlight of it's child elements manually or not.
MarkerTemplate Gets or Sets DataTemplate for Markers.
Template Gets or Sets DataTemplate for this Series elements.
HintLabelTemplate Gets or sets hint label template for elements of this series.
HintLineTemplate Gets or sets hint line template for elements of this series.
HintLineLength Gets or sets hint line length.
Title Gets or Sets Series Title. Displayed in LegendItem
Spacing Gets or Sets Spacing between series elements. this value is % relative to element width. Example: if for Column layout type spacing is 20, then column width is 80.
Layout Gets or Sets LayoutEngine for this Series, that will layout this Series.
DefaultInterior Gets or Sets default interior color for series elements.
Area Gets parent Area
DataPointBindings Gets list of BindingInfo objects. Add BindingInfo objects to this list to set up binding for DataPoints.
DataPointsSource Gets or Sets binding source for DataPoints.
DataPoints Gets or sets list of DataPoint.
LayoutPrimitives Gets list of ChartPrimitive for layout elements.
LayoutHints Gets list of ChartPrimitive for layout hints.


Methods

Method Description
ApplyDefaultTemplate() Applies default DataTemplates for series elements.
GetSortedPoints() Gets array of DataPoints contained in this series, sorted if needed.
Reset() Clears list of chart primitives.


Axis

Derives from Xceed.Wpf.Toolkit.Chart.GridLine

Represents an axis.

Properties

Property Description
LabelsType Gets or sets type of tick labels.
DateTimeFormatInfo Gets or sets DateTime format, uses to convert DateTime to labels text in LabelsType.DateTime mode.
DateTimeFormat Gets or sets DateTime format. Used from convert DateTime to labels text in LabelsType.DateTime mode.
Location Gets start point of axis line.
ScaleMode Gets or sets scale mode of the axis.
GraduationMode Gets or sets graduation mode of the axis.
CustomRangeStart Gets or sets custom start point for manual scale mode.
CustomRangeEnd Gets or sets custom end point for manual scale mode.
TickLabels Gets list of tick labels.
TicksCount Gets or sets the count of ticks.
TitleMargin Gets or sets the margin between title label and axis line.
TickList Gets collection of ticks.
GridLines Gets collection of grid lines.
ShowArrow Gets or sets the visibility of the arrow.
ShowAxis Gets or sets the visibility of the axis.
ShowGridLines Gets or sets the visibility of grid lines.
ShowTicks Gets or sets the visibility of ticks.
ShowTickLabels Gets or sets the visibility of tick labels.
ShowAxisLabel Gets or sets the visibility of the axis label.
Reversed Gets or sets indicator of the axis revertion.
Range Gets or sets range of the axis.
GridTemplate Gets or sets data template for grid lines representation.
TickTemplate Gets or sets data template for ticks representation.
ArrowTemplate Gets or sets data template for arrow representation.
LabelTemplate Gets or sets data template for labels representation.
Arrow Gets or sets instance of the axis arrow.
Title Gets or sets text for title label.
AxisTitleTemplate Gets or sets data template for axis labels representation.
AxisLabelsLayout Gets or sets axis labels style of layout.
GridPoint Gets layout point used to calculate position of the element. (Inherited from GridLine)
Orientation Gets or sets orientation of the grid line. (Inherited from GridLine)
Info Gets or Sets binding source object for this primitive. (Inherited from ChartPrimitive)
IsHighlighted Gets or Sets, is primitive highlighted or not. (Inherited from ChartPrimitive)
IsCovered Gets or Sets is primitive "covered" or not. "Covered" means this primitive is not highlighted, but some other primitive is highlighted.
DataPoint Gets DataPoint corresponding to this primitive. (Inherited from ChartPrimitive)


Methods

Method Description
GetRealPoint( double pt ) Converts point in user logic coordinates into point in actual pixels.
Reset() Resets layout.
SetTitlesDirection( DataRange layoutRange, bool layoutReversed ) Sets direction of the tick labels.
PerformGraduation() Performs graduation of the axis.
PerformCustomRangeGraduation() Perform graduation for custom range in manual scale mode.


Events

Event Description
HighlightEnter Raised when primitive gets highlighted. (Inheridted from ChartPrimitive)
HighlightLeave Raised when primitive gets un-highlighted. (Inherited from ChartPrimtive)


---

Viewing all articles
Browse latest Browse all 892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>