ScatterPlot_Baseball.rtf

(2 KB) Pobierz

Point Plot - Baseball Player Height Vs Weight

This sample application demonstrates a ChartControl with PointPlot defined series utilizing Quantitative data solely.

In this example the horizontal X Axis represents the player height.  The vertical Y Axis represents the player weight.

There are 9 defined series altogether - one for each of the following player positions: Catcher, Designated Hitter, First Baseman, Second Baseman, ThirdBaseman, Outfielder, Shortstop, Starting Pitcher, and Relief Pitcher.

Things to note:

The Legend displays each series, with each legend item having an associated checkbox to enable or disable the display of the item in chart.  There are also 2 other items presented in the Legend - one is for a defined ReferenceLine showing the Average height of all displayed series, and a second displaying a ReferenceLine showing the average weight of all displayed series.  The Legend item also has application presented text showing the actual average value for each ReferenceLine.

The Legend is application set to only occupy 75% of the available horizontal space.  It is also set to have all the defined items vertically aligned (can be set to false, if desired).

The image of the baseball (lower bottom right of the chart) is set to not scroll/pan with the chart, and is also set to display on top of the chart itself (unlike the previous sample PointPlot app that had the image stretched over the entire area and under the chart).

The chart can have any number of Titles, at any/all of the edges of the chart.  They can be rotated as set by the application, or auto orientated by the chart according to the title edge placement.  Titles can be fully styled and can be formatted using mini-markup, if desired.

The Crosshair display in this example is set to display a single label for the nearest intersecting point.

Zgłoś jeśli naruszono regulamin