CChart member functions
These are the member functions of CChart:
Construction/Destruction
CChart
- Default constructor
~CChart
- Default destructor
Overridable
OnDraw
- Draw the chart
Serialize
- Save or restore a chart
WriteTextFile
- Save the data to a text file
GetPlotRect
- Return the rect of the data region of the plot
DeleteAllData
- Delete every data set
DeleteData
- Delete a specific data set
SetDataModified
- Call after modifying internal data by hand
DataToLP
- Convert from a data point to a logical point
LPToData
- Convert from a logical point to a chart point
LPToNearest
- Convert from a logical point to the nearest data value
AxisSettings
- Show the axis settings dialog box
DataSettings
- Show the data settings dialog box
PlotSettings
- Show the plot settings dialog box
ShowPopupMenu
- Show the shortcut menu for the chart
Axes
GetAxisCount
- Get the number of axes attached to the chart
GetAxis
- Get a specific axis
GetAxisByLocation
- Get an axis reference by its location
AddAxis
- Add an axis to the chart
Data
GetDataSet
- Get a pointer to a data set
GetDataSetCount
- Get the number of data sets attached to the chart
AddData
- Add a data set to the chart
SetData
- Change the data in an existing data set
GetDataTitle
- Get the title of the data set
SetDataTitle
- Set the title of the data set
Colors
GetTitleColor
- Get the color of the title
SetTitleColor
- Set the color of the title
GetBackgroundColor
- Get the background color
SetBackgroundColor
- Set the background color
GetLineColor
- Get the color of the bounding box lines
SetLineColor
- Set the color of the bounding box lines
GetMajorGridColor
- Get the color of the major grid lines
SetMajorGridColor
- Set the color of the major grid lines
GetMinorGridColor
- Get the color of the minor grid lines
SetMinorGridColor
- Set the color of the minor grid lines
Grids
GetMajorGridLineSize
- Get the line size of the major grids
SetMajorGridLineSize
- Set the line size of the major grids
GetMinorGridLineSize
- Get the line size of the minor grids
SetMinorGridLineSize
- Set the line size of the minor grids
GetMinorGridLineStyle
- Get the line style of the minor grids
SetMinorGridLineStyle
- Set the line style of the minor grids
DrawMajorMinorGrids
- Draws the grids
Plot range
- These functions determine the correct axis to use for setting the range
SetRange
- Set the x range or the y range
SetXRange
- Set the x range
SetYRange
- Set the y range
IsAutoRange
- Determine whether x and y are auto ranged
IsXAutoRange
- Determine whether the x axis is auto ranged
IsYAutoRange
- Determine whether the y axis is auto ranged
SetAutoRange
- Set the x or y axis to be auto ranged
SetXAutoRange
- Set the x axis to be auto ranged
SetYAutoRange
- Set the y axis to be auto ranged
Title
GetTitle
- Get the chart title
SetTitle
- Set the chart title
Utility
GetIndex
- Return an array index from a data ID (protected)
GetEraseBackground
- Determine whether the background is erased during an update
SetEraseBackground
- Set whether the background is erased during an update
GetOptimalRange
- Get optimal ranges and tick marks from the data
GetOptimalRangeExact
- Get optimal tick marks from the range
GetTickOptimalTickInterval
- Get optimal tick mark interval from the range
AdjustPlotSizeForAxes
- Adjust the size of the plotting rectangle for the size of the axes
AdjustPlotSizeForTitle
- Adjust the size of the plotting rectangle for the size of the chart title
DrawPlotTitle
- Draws the plot title
EraseBackground
- Erase the plot background
DrawFrame
- Draws a frame around the plotting rectangle
CPlot Reference