forked from PhilJay/MPAndroidChart
-
Notifications
You must be signed in to change notification settings - Fork 0
DataSet classes in detail
Philipp Jahoda edited this page Mar 29, 2015
·
20 revisions
This wiki entry focuses on the subclasses of the DataSet class.
All other subclasses of DataSet not mentioned here do not provide any specific enhancements.
LineDataSet (class LineDataSet)
-
setCircleSize(float size): Sets the size (radius) of the circle shaped value indicators, default size = 4f -
setDrawCircles(boolean enabled): Set this to true to enable the drawing of circle indicators for thisLineDataSet, default true -
setDrawCubic(boolean enabled): If set to true, the linechart lines are drawn in cubic-style instead of linear. This has a negative effect on performance! Default: false -
setCubicIntensity(float intensity): Sets the intensity for cubic lines (if enabled). Max = 1f = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f -
setCircleColor(int color): Sets the color all circle indicators of this dataset should have. -
setCircleColors(List colors): Sets the colors the outer-circles of thisLineDataSetshould have. There are various other methods for setting circle colors as well. -
setCircleColorHole(int color): Sets the color of the inner circle of the line-circles (the hole). -
setDrawCircleHole(boolean enabled): Set this to true to allow drawing a hole in each circle of this dataset. If set to false, circles will be drawn filled (without hole). -
enableDashedLine(float lineLength, float spaceLength, float phase): Enables the line to be drawn in dashed mode, e.g. like this "- - - - - -". "lineLength" is the length of the line pieces, "spaceLength" is the length of space in between the pieces, "phase" is the offset, in degrees (normally, use 0)