Skip to content

Commit ee33795

Browse files
authored
Merge pull request #750 from AppDevNext/Cosmetic
Cosmetic
2 parents aca0c78 + 74d757a commit ee33795

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chartLib/src/main/kotlin/info/appdev/charting/data/ChartData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,9 @@ abstract class ChartData<T : IDataSet<out Entry>> : Serializable {
529529
/**
530530
* Sets a custom IValueFormatter for all DataSets this data object contains.
531531
*/
532-
fun setValueFormatter(f: IValueFormatter) {
532+
fun setValueFormatter(formatter: IValueFormatter) {
533533
for (set in this.dataSets) {
534-
set.valueFormatter = f
534+
set.valueFormatter = formatter
535535
}
536536
}
537537

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ open class HorizontalBarChartRenderer(
227227
val formattedValue = formatter.getFormattedValue(valueY, barEntry, i, viewPortHandler)
228228
// calculate the correct offset depending on the draw position of the value
229229
val valueTextWidth = paintValues.calcTextWidth(formattedValue).toFloat()
230-
posOffset = (if (drawValueAboveBar) valueOffsetPlus else -(valueTextWidth + valueOffsetPlus))
230+
posOffset = if (drawValueAboveBar) valueOffsetPlus else -(valueTextWidth + valueOffsetPlus)
231231
negOffset = ((if (drawValueAboveBar) -(valueTextWidth + valueOffsetPlus) else valueOffsetPlus)
232232
- (buffer.buffer[j + 2] - buffer.buffer[j]))
233233

0 commit comments

Comments
 (0)