BCGControlBar Pro for MFC
CBCGPChartTernaryAxis

Detailed Description

The CBCGPChartTernaryAxis class implements the functionality of a ternary axis used for Ternary Chart type.

A Ternary Chart (see CBCGPChartTernarySeries) uses three axes (for component A, B and C), which can be accessed using CBCGPChartVisualObject::GetChartAxis method with the following axis IDs:

  • BCGP_CHART_A_TERNARY_AXIS
  • BCGP_CHART_B_TERNARY_AXIS
  • BCGP_CHART_C_TERNARY_AXIS

ternary axis is derived from CBCGPChartAxis and provides the same functionality with some limitations:

  • IsVertical always returns FALSE
  • PointFromValue method is not implemented (asserts in debug version). Use PointFromChartData() instead.
  • There is no interval interlacing.
  • GetBoundingRect for any ternary axis always returns a bounding rectangle of a triangle formed by the ternary axes.
  • Minimum values on a ternary axis is always 0, maximum - 100 (the same is for minimum and maximum displayed values).
  • Other limitations imposed by the nature of Ternary Chart.

Axis labels can be displayed in regular mode (0, 25, 50, 75, 100), 20/80 mode (0/100, 25/75, 50/50, 75/25, 100/0) and base 1 mode (0, 0.1, 0.25, 0.5, 0.75, 1.).

Use SetLabelMode() method to set the desired mode.

See also
CBCGPChartAxis, CBCGPChartTernarySeries
+ Inheritance diagram for CBCGPChartTernaryAxis:

Public Types

enum  TitleMode
 

Public Member Functions

 GetLabelModeReturns current label mode.
 
 GetTitleModeReturns current title mode.
 
 PointFromChartDataGiven a Chart Data returns a point in Chart client coordinates.
 
 PointFromValueGiven a chart value returns a point in client coordinates. Do not use for a ternary axis.
 
 SetLabelModeSets new label mode.
 
 SetTitleModeSets new title mode.
 
- Public Member Functions inherited from CBCGPChartAxis
 AddScaleBreakAdds a new scale break.
 
 CalcMajorMinorUnitsCalculates major and minor units for an axis.
 
 CanBeScrolledTells whether an axis can be scrolled.
 
 CanDisplayDataBetweenTickMarksTells whether an axis can display data points positioned between tick marks.
 
 CanShowScrollBarSpecifies whether an axis can display a scroll bar.
 
 CanUseScaleBreaksTells whether an axis can display scale breaks.
 
 EnableAllUnitsOnFixedIntervalSpecifies whether partially visible data points for a fixed interval width should be drawn.
 
 EnableIndependentZoomEnables or disables independent zoom.
 
 EnableMajorUnitIntervalInterlacingEnables major unit interlacing.
 
 EnableScaleBreaksEnables or disables axis scale breaks.
 
 EnableScrollEnables or disables axis scrolling.
 
 EnableZoomEnables or disables axis zooming.
 
 GenerateScaleBreaksGenerates scale breaks.
 
 GetAxisGapGets the distance between two axes that share the same perpendicular axis.
 
 GetAxisPosGets axis start and end points in client coordinates.
 
 GetAxisRectGets an axis rectangle.
 
 GetAxisSizeCalculates axis size in pixels.
 
 GetBottomOffsetGets axis offset from the bottom or left side of the diagram area.
 
 GetBoundingRectsReturns a list of bounding rectangles formed by this axis and its perpendicular axes.
 
 GetComponentIndexReturns component index of chart data this axis uses to display values.
 
 GetCrossValuePosReturns current cross value.
 
 GetCustomPerpendicularAxisReturns a pointer to custom perpendicular axis.
 
 GetDisplayUnitsReturns displayed units.
 
 GetFirstInterlacedIntervalIndexReturns first interlaced interval index.
 
 GetFixedIntervalWidthReturns fixed interval width.
 
 GetFixedIntervalWidthScaledReturns fixed interval width in device units taking into account DPI settings.
 
 GetIndexedSeriesReturns indexed series.
 
 GetInterlaceStepReturns interlace step.
 
 GetLabelDistanceReturns distance between axis labels and the axis line.
 
 GetLogScaleBaseReturns current logarithmic scale base.
 
 GetMajorTickMarkLenReturns size, in pixels, of major tick marks.
 
 GetMajorUnitReturns major axis unit.
 
 GetMaxDisplayedValueReturns maximum displayed value.
 
 GetMaxScrollValueReturns maximum scroll value.
 
 GetMaxZoomInFactorReturns maximal zoom factor.
 
 GetMinDisplayedValueReturns minimum displayed value.
 
 GetMinorUnitCountReturns minor unit count.
 
 GetMinScrollValueReturns minimum scroll value.
 
 GetOppositeAxisReturns a pointer to an opposite axis.
 
 GetRightOffsetAsNumberOfValuesConverts offset in pixels to offset in values, taking into account the current zoom level.
 
 GetRightOffsetInPixelsReturns offset from the right bound of plot area in pixels.
 
 GetScaleBreakCountReturns a number of scale breaks.
 
 GetScaleBreaksOptionsReturns scale break options.
 
 GetScrollBarRectReturns bounding rectangle of scroll bar.
 
 GetSplitBottomReturns a pointer to a next split axis located at the bottom of this axis.
 
 GetSplitTopReturns a pointer to a next split axis located at the top of this axis.
 
 GetTopOffsetReturns a top offset for an axis.
 
 GetValuesPerIntervalReturns a number of values per interval.
 
 HasSeriesTells whether there is at least one series, which is displayed on an axis.
 
 HitTestRetrieves hit test info for an axis.
 
 IsAllUnitsOnFixedIntervalTells whether partially visible data points for a fixed interval width should be drawn.
 
 IsAlwaysShowScrollBarTells whether a scroll bar has an "always visible" flag set.
 
 IsAxisVisibleTells whether an axis is visible, or not.
 
 IsComponentXSetTells whether X component has been set for at least one series that is displayed on an axis.
 
 IsDisplayDataBetweenTickMarksTells whether an axis displays data between tick marks.
 
 IsFixedDisplayRangeTells whether an axis displays some predefined fixed range.
 
 IsFixedIntervalWidthTells whether an axis works in "fixed interval width" mode.
 
 IsFixedMajorUnitTells whether a fixed major unit is specified.
 
 IsFixedMaximumDisplayValueTells whether a fixed maximum displayed value has been specified.
 
 IsFixedMinimumDisplayValueTells whether a fixed minimum displayed value has been specified.
 
 IsIndependentZoomEnabledTells whether the independent zoom option is turned on or off.
 
 IsIndexedSeriesTells whether an axis works in "indexed" mode.
 
 IsLogScaleTells whether an axis has logarithmic scale.
 
 IsMajorGridLinesVisibleTells whether an axis displays major grid lines, or not.
 
 IsMajorUnitIntervalInterlacingEnabledTells whether major unit interlacing is enabled.
 
 IsMinorGridLinesVisibleTells whether an axis displays minor grid lines, or not.
 
 IsScrollEnabledTells whether an axis can be scrolled.
 
 IsZoomedTells whether an axis is zoomed.
 
 IsZoomEnabledTells whether zoom is enabled for an axis.
 
 OnDrawAxisName3DCalled to draw axis name for 3D chart.
 
 OnDrawScaleBreaksCalled to draw a scale break.
 
 OnDrawScrollBarCalled to draw a scroll bar.
 
 RemoveAllBreaksRemoves all scale breaks that have been added manually.
 
 RemoveCustomAxisCalled for a custom axis when it's about to be removed from the chart.
 
 ResetResets axis state to default.
 
 ScrollScrolls an axis.
 
 ScrollToScrolls an axis to the specified value.
 
 SetAlwaysShowScrollBarEnables an axis to always show a scroll bar.
 
 SetAutoDisplayRangeSets automating display range (scaling).
 
 SetAutoIntervalWidthSets automatic interval width mode.
 
 SetAxisOffsetsSets axis offsets.
 
 SetCustomPerpendicularAxisSpecifies a perpendicular axis for an axis.
 
 SetDisplayDataBetweenTickMarksCauses data points to be displayed between tick marks.
 
 SetDisplayUnitsSets display units.
 
 SetFirstInterlacedIntervalIndexSets index of first interlaced interval.
 
 SetFixedDisplayRangeSets fixed display range.
 
 SetFixedIntervalWidthSets "fixed interval" mode.
 
 SetFixedMajorUnitSets fixed major unit.
 
 SetFixedMaximumDisplayValueSets fixed maximum displayed value.
 
 SetFixedMinimumDisplayValueSets fixed minimum displayed value.
 
 SetFixedUnitCountSets a value that fixes the number of displayed major units.
 
 SetIndexedSeriesSets indexed series.
 
 SetInterlaceStepSets interlace step value.
 
 SetLogScaleEnables or disables logarithmic scale for the axis.
 
 SetMajorTickMarkLenSets length, in pixels, of major tick marks.
 
 SetMaximumValueSets the maximum value on an axis.
 
 SetMaxZoomInFactorSets maximal zoom factor.
 
 SetMinAllowedMajorUnitSets minimal allowed major unit value.
 
 SetMinimumValueSets the minimum value on an axis.
 
 SetMinorTickMarkLenSets length, in pixels, of minor tick marks.
 
 SetMinorUnitCountSets the minor unit count.
 
 SetMinThumbSizeSets minimum thumb size.
 
 SetRightOffsetInPixelsSets offset of last displayed value in pixels for charts in "fixed interval" mode.
 
 SetScrollBarSizeSets scroll bar size.
 
 SetScrollRangeDefines a scroll range for an axis.
 
 SetVerticalSets axis orientation.
 
 ShowMajorGridLinesShows or hides major grid lines.
 
 ShowMinorGridLinesShows or hides minor grid lines.
 
 ShowScrollBarEnables an axis to display a scroll bar.
 
 SplitSplits an axis creating an additional custom axis.
 
 UnZoomSets zoom 100% on an axis.
 
 ZoomZooms an axis.
 

Additional Inherited Members

- Public Attributes inherited from CBCGPChartAxis
 m_axisLabelsFormatDefines appearance of axis labels.
 
 m_axisLabelTypeDefines location of axis labels.
 
 m_axisLineFormatSpecifies an axis line style.
 
 m_axisNameFormatDefines appearance of axis name.
 
 m_bAlwaysVisibleForces an axis to be visible, even it does not have any related series.
 
 m_bDisplayAxisNameSpecifies whether an axis name should be displayed, or not.
 
 m_bFormatAsDatePuts an axis to "date/time" mode.
 
 m_bReverseOrderTells an axis to display data in reverse order.
 
 m_brIntervalSpecifies alternative color for major unit interval interlacing.
 
 m_bVisibleSpecifies whether an axis is visible or not.
 
 m_crossTypeSpecifies cross type for an axis.
 
 m_dblCrossOtherAxisValueSpecifies a value on a perpendicular axis where this axis crosses it.
 
 m_dblLabelDistanceSpecifies distance between axis labels and axis line.
 
 m_majorGridLineFormatFormats major grid lines.
 
 m_majorTickMarkTypeSpecifies major tick mark type.
 
 m_minorGridLineFormatFormats minor grid lines.
 
 m_minorTickMarkTypeSpecifies minor tick mark type.
 
 m_nAxisIDSpecifies axis ID.
 
 m_nMaxTotalLinesSpecifies how many major units an axis can display.
 
 m_strAxisNameSpecifies axis name.
 
 m_strDataFormatFormats axis labels.
 
 m_szMaxFixedLabelSizeDeclares maximal axis label size.
 
- Protected Member Functions inherited from CBCGPChartAxis
 CBCGPChartAxisConstructs and initializes a chart axis object.
 
 CBCGPChartAxisConstructs and initializes a chart axis object.
 
 OnDrawScrollBarCalled to draw a scroll bar.
 
- Protected Attributes inherited from CBCGPChartAxis
 m_nMajorTickMarkLenSpecifies length of major tick marks.
 
 m_nMinorTickMarkLenSpecifies length of minor tick marks.