Skip to content

Commit 7a2c2e4

Browse files
committed
Cosmetic in CombinedChartRenderer
1 parent 55ff9a9 commit 7a2c2e4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chartLib/src/main/kotlin/info/appdev/charting/charts/CombinedChart.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ open class CombinedChart : BarLineChartBase<CombinedData>, CombinedDataProvider
169169
/**
170170
* The order in which the provided data objects should be drawn. The
171171
* earlier you place them in the provided array, the further they will be in
172-
* the background. e.g. if you provide new DrawOrer[] { DrawOrder.BAR,
172+
* the background. e.g. if you provide DrawOrder { DrawOrder.BAR,
173173
* DrawOrder.LINE }, the bars will be drawn behind the lines.
174174
*/
175175
var drawOrder: MutableList<DrawOrder>?

chartLib/src/main/kotlin/info/appdev/charting/renderer/CombinedChartRenderer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ open class CombinedChartRenderer(
2323
/**
2424
* all renderers for the different kinds of data this combined-renderer can draw
2525
*/
26-
protected var dataRenderers: MutableList<DataRenderer> = ArrayList(5)
27-
protected var highlightBuffer: MutableList<Highlight> = ArrayList()
26+
protected var dataRenderers: MutableList<DataRenderer> = mutableListOf()
27+
protected var highlightBuffer: MutableList<Highlight> = mutableListOf()
2828
protected var weakChart: WeakReference<Chart<*>> = WeakReference(chart)
2929

3030
init {

0 commit comments

Comments
 (0)