# OHOS::UIChartDataSerial - [Overview](#section1012289381165634) - [Summary](#section2001841170165634) - [Data Structures](#nested-classes) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Defines a data set and provides functions such as adding and deleting data points. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures
Defines the style for the top, bottom, and frontmost points in a line chart. |
|
A constructor used to create a UIChartDataSerial instance. |
|
|
A destructor used to delete the UIChartDataSerial instance. |
|
SetMaxDataCount (uint16_t maxCount) |
Sets the maximum number of data points that can be stored in a data set. |
ModifyPoint (uint16_t index, const Point &point) |
|
|
Obtains the coordinates in the chart for a data point in the data set. |
|
ClearData () |
|
GetDataCount () const |
Obtains the number of data points available in the data set. |
EnableSmooth (bool smooth) |
|
IsSmooth () const |
|
EnableGradient (bool enable) |
|
IsGradient () const |
|
GetPeakIndex () const |
|
GetLatestIndex () const |
Obtains the index of the frontmost point (the latest added or modified data point in a data set). |
GetValleyIndex () const |
|
GetPeakData () const |
|
GetValleyData () const |
|
GetLineColor () const |
|
GetFillColor () const |
|
SetFillColor (const ColorType &color) |
|
SetLineColor (const ColorType &color) |
|
GetHideIndex () const |
|
GetHideCount () const |
|
SetHeadPointStyle (const PointStyle &style) |
|
SetTopPointStyle (const PointStyle &style) |
|
SetBottomPointStyle (const PointStyle &style) |
|
GetHeadPointStyle () const |
const PointStyle & |
GetTopPointStyle () const |
const PointStyle & |
GetBottomPointStyle () const |
const PointStyle & |
EnableHeadPoint (bool enable) |
Enables the feature of drawing the frontmost point on a polyline. |
EnableTopPoint (bool enable) |
Enables the feature of drawing the top point of a polyline. If there are multiple top points, only the first one is drawn. |
EnableBottomPoint (bool enable) |
Enables the feature of drawing the bottom point of a polyline. If there are multiple bottom points, only the first one is drawn. |
operator new (size_t size) |
|
operator delete (void *p) |