Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ open class BarDataSet(yVals: MutableList<BarEntry>, label: String) : BarLineScat
* The width used for drawing borders around the bars.
* If borderWidth == 0, no border will be drawn.
*/
override var barBorderWidth: kotlin.Float
override var barBorderWidth: Float
get() = mBarBorderWidth
set(value) {
mBarBorderWidth = value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import info.appdev.charting.interfaces.datasets.IBubbleDataSet
class BubbleData : BarLineScatterCandleBubbleData<IBubbleDataSet> {
constructor() : super()

constructor(vararg dataSets: IBubbleDataSet) : super(*dataSets)

constructor(dataSets: MutableList<IBubbleDataSet>) : super(dataSets)


/**
* Sets the width of the circle that surrounds the bubble when highlighted
* for all DataSet objects this data object contains, in dp.
Expand Down
14 changes: 0 additions & 14 deletions chartLib/src/main/kotlin/info/appdev/charting/data/BubbleEntry.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class BubbleEntry : Entry {
/**
* Returns the size of this entry (the size of the bubble).
*/
/** size value */
var size: Float

/**
Expand Down Expand Up @@ -50,19 +49,6 @@ class BubbleEntry : Entry {
this.size = size
}

/**
* Constructor.
*
* @param x The value on the x-axis.
* @param y The value on the y-axis.
* @param size The size of the bubble.
* @param icon Icon image
* @param data Spot for additional data this Entry represents.
*/
constructor(x: Float, y: Float, size: Float, icon: Drawable?, data: Any?) : super(x, y, icon, data) {
this.size = size
}

override fun copy(): BubbleEntry {
return BubbleEntry(x, y, this.size, data)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ import info.appdev.charting.interfaces.datasets.ICandleDataSet
class CandleData : BarLineScatterCandleBubbleData<ICandleDataSet> {
constructor() : super()

constructor(dataSets: MutableList<ICandleDataSet>) : super(dataSets)

constructor(vararg dataSets: ICandleDataSet) : super(*dataSets)
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,21 @@ class CandleEntry : Entry {
/**
* Returns the upper shadows highest value.
*/
/** shadow-high value */
var high: Float

/**
* Returns the lower shadows lowest value.
*/
/** shadow-low value */
var low: Float

/**
* Returns the bodies close value.
*/
/** close value */
var close: Float

/**
* Returns the bodies open value.
*/
/** open value */
var open: Float

/**
Expand Down Expand Up @@ -105,8 +101,7 @@ class CandleEntry : Entry {
}

/**
* Returns the overall range (difference) between shadow-high and
* shadow-low.
* Returns the overall range (difference) between shadow-high and shadow-low.
*/
val shadowRange: Float
get() = abs(this.high - this.low)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import timber.log.Timber
* PieDataSet (multiple PieDataSets inside a single PieChart are not possible).
*/
class PieData : ChartData<IPieDataSet> {
constructor() : super()

constructor(dataSet: IPieDataSet) : super(dataSet)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ open class PieDataSet(yVals: MutableList<PieEntry>?, label: String) : DataSet<Pi
}

/**
* Sets the space that is left out between the piechart-slices in dp.
* Sets the space that is left out between the PieChart-slices in dp.
* Default: 0 --> no space, maximum 20f
*/
override var sliceSpace: Float
Expand All @@ -70,7 +70,7 @@ open class PieDataSet(yVals: MutableList<PieEntry>?, label: String) : DataSet<Pi
}

/**
* sets the distance the highlighted piechart-slice of this DataSet is
* sets the distance the highlighted PieChart-slice of this DataSet is
* "shifted" away from the center of the chart, default 12f
*/
override var selectionShift: Float
Expand Down
13 changes: 0 additions & 13 deletions chartLib/src/main/kotlin/info/appdev/charting/data/RadarData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,11 @@ import info.appdev.charting.interfaces.datasets.IRadarDataSet
class RadarData : ChartData<IRadarDataSet> {
/**
* Sets the labels that should be drawn around the RadarChart at the end of each web line.
*
* @param labels
*/
var labels: MutableList<String>? = null

constructor() : super()

constructor(dataSets: MutableList<IRadarDataSet>) : super(dataSets)

constructor(vararg dataSets: IRadarDataSet) : super(*dataSets)

/**
* Sets the labels that should be drawn around the RadarChart at the end of each web line.
*/
fun setLabels(vararg labels: String) {
this.labels = mutableListOf(*labels)
}

override fun getEntryForHighlight(highlight: Highlight): Entry? {
return getDataSetByIndex(highlight.dataSetIndex)!!.getEntryForIndex(highlight.x.toInt())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ open class RadarChartRenderer(
private val innerAreaPath = Path()
private val tempPath = Path()


override fun initBuffers() = Unit

override fun drawData(canvas: Canvas) {
Expand Down
Loading