Skip to content

CChartCanvas

CChartCanvas

Base class for implementing classes, which are used for drawing charts and their elements.

Description

This class includes methods for working with the basic elements of any chart: coordinate axes and their marks, chart legend, grid, background, etc. Here you can customize the options for displaying elements: visibility, text color, etc.

Declaration

class CChartCanvas : public CCanvas

Title

#include <Canvas\Charts\ChartCanvas.mqh>

Inheritance hierarchy

CCanvas

CChartCanvas

Direct descendants

: CHistogramChart, CLineChart, CPieChart

Class methods

MethodAction
ColorBackgroundReturns and sets the background color.
ColorBorderReturns and sets the border color.
ColorTextReturns and sets the text color.
ColorGridReturns and sets the grid color.
MaxDataReturns and sets the maximum amount of data (series) allowed.
MaxDescrLenReturns and sets the maximum length of the descriptors.
ShowFlagsReturns and sets the visibility flag of the chart elements.
IsShowLegendReturns and sets the visibility flag of the legend on the chart.
IsShowScaleLeftReturns the visibility flag of the scale of values on the left.
IsShowScaleRightReturns the visibility flag of the scale of values on the right.
IsShowScaleTopReturns the visibility flag of the scale of values at the top.
IsShowScaleBottomReturns the visibility flag of the scale of values at the bottom.
IsShowGridReturns the visibility flag of the grid on the chart.
IsShowDescriptorsReturns the visibility flag of the descriptors on the chart.
IsShowPercentReturns the visibility flag of the percentages on the chart.
VScaleMinReturns and sets the minimum on the vertical scale of values.
VScaleMaxReturns and sets the maximum on the vertical scale of values.
NumGridReturns and sets the number of vertical scale divisions when plotting the chart grid.
DataOffsetReturns and sets the data offset value.
DataTotalReturns the total number of data series on the chart.
DrawDescriptorsVirtual method for drawing descriptors.
DrawDataVirtual method for drawing data series at the specified index.
CreateVirtual method that creates a graphical resource.
AllowedShowFlagsSets the set of allowed visibility flags for chart elements.
ShowLegendSets the visibility flag for the legend.
ShowScaleLeftSets the visibility flag for the left scale.
ShowScaleRightSets the visibility flag for the right scale.
ShowScaleTopSets the visibility flag for the top scale.
ShowScaleBottomSets the visibility flag for the bottom scale.
ShowGridSets the visibility flag for the grid.
ShowDescriptorsSets the visibility flag for the descriptors.
ShowValueSets the visibility flag for the values.
ShowPercentSets the visibility flag for the percentages.
LegendAlignmentSets the text alignment for the legend.
AccumulativeSets the value accumulation flag for the series.
VScaleParamsSets the parameters for the vertical scale of values.
DescriptorUpdateUpdates the value of the series descriptor (at the specified position).
ColorUpdateUpdates the series colors (at the specified position).
ValuesCheckPerforms internal calculations for plotting the chart.
RedrawRedraw the chart.
DrawBackgroundDraws the background.
DrawLegendRedraws the legend.
DrawLegendVerticalDraws a vertical legend.
DrawLegendHorizontalDraws a horizontal legend.
CalcScalesCalculates the coordinates of the scale.
DrawScalesRedraws all scales of values.
DrawScaleLeftRedraws the left scale of values.
DrawScaleRightRedraws the right scale of values.
DrawScaleTopRedraws the top scale of values
DrawScaleBottomRedraws the bottom value scale.
DrawGridRedraw the chart.
DrawChartRedraw the chart.

Methods inherited from class CCanvas

: CreateBitmap, CreateBitmap, CreateBitmapLabel, CreateBitmapLabel, Attach, Attach, Destroy, ChartObjectName, ResourceName, Width, Height, Update, Resize, Erase, PixelGet, PixelSet, LineVertical, LineHorizontal, Line, Polyline, Polygon, Rectangle, Triangle, Circle, Ellipse, Arc, Arc, Arc, Pie, Pie, FillRectangle, FillTriangle, FillPolygon, FillCircle, FillEllipse, Fill, Fill, PixelSetAA, LineAA, PolylineAA, PolygonAA, TriangleAA, CircleAA, EllipseAA, LineWu, PolylineWu, PolygonWu, TriangleWu, CircleWu, EllipseWu, LineThickVertical, LineThickHorizontal, LineThick, PolylineThick, PolygonThick, PolylineSmooth, PolygonSmooth, FontSet, FontNameSet, FontSizeSet, FontFlagsSet, FontAngleSet, FontGet, FontNameGet, FontSizeGet, FontFlagsGet, FontAngleGet, TextOut, TextWidth, TextHeight, TextSize, GetDefaultColor, TransparentLevelSet, LoadFromFile, LineStyleGet, LineStyleSet

Last updated on