|
@@ -208,9 +208,12 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
|
|
rightYAxisRenderer.renderAxisLine(context: context)
|
|
rightYAxisRenderer.renderAxisLine(context: context)
|
|
|
|
|
|
// The renderers are responsible for clipping, to account for line-width center etc.
|
|
// The renderers are responsible for clipping, to account for line-width center etc.
|
|
- xAxisRenderer.renderGridLines(context: context)
|
|
|
|
- leftYAxisRenderer.renderGridLines(context: context)
|
|
|
|
- rightYAxisRenderer.renderGridLines(context: context)
|
|
|
|
|
|
+ if xAxis.drawGridLinesBehindDataEnabled
|
|
|
|
+ {
|
|
|
|
+ xAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ leftYAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ rightYAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ }
|
|
|
|
|
|
if _xAxis.isEnabled && _xAxis.isDrawLimitLinesBehindDataEnabled
|
|
if _xAxis.isEnabled && _xAxis.isDrawLimitLinesBehindDataEnabled
|
|
{
|
|
{
|
|
@@ -234,6 +237,14 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
|
|
}
|
|
}
|
|
renderer.drawData(context: context)
|
|
renderer.drawData(context: context)
|
|
|
|
|
|
|
|
+ // The renderers are responsible for clipping, to account for line-width center etc.
|
|
|
|
+ if !xAxis.drawGridLinesBehindDataEnabled
|
|
|
|
+ {
|
|
|
|
+ xAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ leftYAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ rightYAxisRenderer.renderGridLines(context: context)
|
|
|
|
+ }
|
|
|
|
+
|
|
// if highlighting is enabled
|
|
// if highlighting is enabled
|
|
if (valuesToHighlight())
|
|
if (valuesToHighlight())
|
|
{
|
|
{
|