Skip to content
Open
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 @@ -412,17 +412,7 @@ open class LineChartRenderer(
if (currentStartIndex <= currentEndIndex) {
val drawable = dataSet.fillDrawable

var startIndex = currentStartIndex
var endIndex = currentEndIndex

// Add a little extra to the path for drawables, larger data sets were showing space between adjacent drawables
if (drawable != null) {
startIndex = max(0.0, (currentStartIndex - 1).toDouble()).toInt()
endIndex = min(endingIndex.toDouble(), (currentEndIndex + 1).toDouble()).toInt()
}

generateFilledPath(dataSet, startIndex, endIndex, filled)

generateFilledPath(dataSet, currentStartIndex, currentEndIndex, filled)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@turtleandr

I guess this is your suggested change. Let's see if screenshot diff shows the desired result

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannesa2 yes, exactly

trans.pathValueToPixel(filled)

if (drawable != null) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading