File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
MPChartLib/src/main/java/com/github/mikephil/charting/renderer Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,14 @@ import com.github.mikephil.charting.utils.ViewPortHandler
1818 */
1919@Suppress(" MemberVisibilityCanBePrivate" )
2020abstract class DataRenderer (
21- /* *
22- * the animator object used to perform animations on the chart data
23- */
2421 @JvmField protected var animator : ChartAnimator , viewPortHandler : ViewPortHandler
2522) : Renderer(viewPortHandler) {
26- /* *
27- * Returns the Paint object used for rendering.
28- */
2923 /* *
3024 * main paint object used for rendering
3125 */
3226 var paintRender: Paint
3327 protected set
3428
35- /* *
36- * Returns the Paint object this renderer uses for drawing highlight
37- * indicators.
38- */
3929 /* *
4030 * paint used for highlighting values
4131 */
@@ -44,9 +34,6 @@ abstract class DataRenderer(
4434
4535 protected var drawPaint: Paint
4636
47- /* *
48- * Returns the Paint object this renderer uses for drawing the values (value-text).
49- */
5037 /* *
5138 * paint object for drawing values (text representing values of chart
5239 * entries)
@@ -72,8 +59,7 @@ abstract class DataRenderer(
7259 }
7360
7461 protected open fun isDrawingValuesAllowed (chart : ChartInterface ): Boolean {
75- return (chart.data!! .entryCount < chart.maxVisibleCount
76- * viewPortHandler.scaleX)
62+ return chart.data!! .entryCount < chart.maxVisibleCount * viewPortHandler.scaleX
7763 }
7864
7965 /* *
You can’t perform that action at this time.
0 commit comments