OhPeterPan

Results 12 comments of OhPeterPan

> I guess these codes can resolve your problem. > > ` lineDataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);` lineDataSet.setCubicIntensity(0.1f); ` PM requires that smooth curves cannot be used,but thanks

> You can try `y.axisMinimum = -1f` if your chart Y-axis is fixed.below image is my chart when I use > > ``` > y.axisMinimum = -1f > y.axisMaximum =...

> 您好,由于v3版本的设计缺陷,你的问题将在v4版本修复 好的,谢谢回复,期待V4~~

我的也是,有解决的方法吗?

> ![image](https://user-images.githubusercontent.com/16437749/182772324-74561144-87f4-43ab-9e44-b0fea3a0782c.png) 我这只做到了点击绿线画绿点,蓝线画蓝点,因为它是依赖单根线的,绘制一个点的时候并不知道另一个交点的坐标。如果有人知道解决方案,希望能指教下~ > 这个库不太好绘制多个交点,绘制一个挺简单的。前者可能需要大改... 我把源码弄下来,改改里面的东西实现了,不过你的这种markview我没有实现阴影,最后跟ui商量弄了个灰色的框完事儿

> 可以贴一下多交点绘制的核心代码吗?感谢。 @Override public void drawHighlighted(Canvas c, Highlight[] indices) { LineData lineData = mChart.getLineData(); int entryIndex = -1; for (Highlight high : indices) { ILineDataSet set = lineData.getDataSetByIndex(high.getDataSetIndex()); if (set...

> 可以贴一下多交点绘制的核心代码吗?感谢。 LineChartRenderer这个类里面

> 代码很强,已经实现了这个功能。然后我这边的两条线对应的是每月的日子,每条线的数值个数可能不一样,加了个判断避免数组越位。 > > ``` > for (ILineDataSet set : dataSets) { > if (entryIndex < set.getEntryCount()) { > Entry e = set.getEntryForIndex(entryIndex); > MPPointD pix = mChart.getTransformer(set.getAxisDependency()) > .getPixelForValues(e.getX(),...