如何在MPAndroidChart中禁用高亮显示行?

时间:2022-12-26 23:42:01

MPAndroidChart - linechart

MPAndroidChart——linechart

如何在MPAndroidChart中禁用高亮显示行?

how to invisible touching line ?
please help.

如何隐形触线?请帮助。

3 个解决方案

#1


14  

Actually its Highlight selected axis.

实际上它的高亮选择轴。

to remove that use mChart.getData().setHighlightEnabled(false);

要删除它,请使用mChart.getData(). se大腿轻便(false);

setHighlightEnabled : Enables / disables highlighting values for all DataSets this data object contains. If set to true, this means that values can be highlighted programmatically or by touch gesture.

启用/禁用此数据对象包含的所有数据集的突出显示值。如果设置为true,这意味着可以通过编程或触摸手势来突出显示值。


If you have sample of MP Android Lib then you can check it from Option Menu named "Toggle Highlight".

如果您有MP Android Lib的示例,那么您可以从名为“Toggle Highlight”的选项菜单中选中它。

This can also be found in the documentation.

这也可以在文档中找到。

#2


12  

If still want to show marker, and hide those lines, try this. (MPAndroidChart v3.0.0)

如果还想显示标记,并隐藏这些线,试试这个。(MPAndroidChart v3.0.0)

dataSet.setDrawHorizontalHighlightIndicator(false); dataSet.setDrawVerticalHighlightIndicator(false);

dataSet.setDrawHorizontalHighlightIndicator(假);dataSet.setDrawVerticalHighlightIndicator(假);

#3


3  

To remove touch lines you can use

要删除你可以使用的触摸线。

dataSet.setDrawHighlightIndicators(false);

To remove individual indicator lines, use either one of following

若要删除单个指示符行,请使用以下命令之一。

dataSet.setDrawHorizontalHighlightIndicator(false);
dataSet.setDrawVerticalHighlightIndicator(false);

In this, 'dataSet' should be an instance of LineScatterCandleRadarDataSet (LineDataSet extending that class in the inheritance hierarchy)

在这里,'dataSet'应该是LineScatterCandleRadarDataSet的实例(LineDataSet在继承层次结构中扩展了该类)

You do not need to have mpAndroidChart Version 3. I tried this with version 2.1.6

您不需要mpAndroidChart版本3。我尝试了2.1.6版本

#1


14  

Actually its Highlight selected axis.

实际上它的高亮选择轴。

to remove that use mChart.getData().setHighlightEnabled(false);

要删除它,请使用mChart.getData(). se大腿轻便(false);

setHighlightEnabled : Enables / disables highlighting values for all DataSets this data object contains. If set to true, this means that values can be highlighted programmatically or by touch gesture.

启用/禁用此数据对象包含的所有数据集的突出显示值。如果设置为true,这意味着可以通过编程或触摸手势来突出显示值。


If you have sample of MP Android Lib then you can check it from Option Menu named "Toggle Highlight".

如果您有MP Android Lib的示例,那么您可以从名为“Toggle Highlight”的选项菜单中选中它。

This can also be found in the documentation.

这也可以在文档中找到。

#2


12  

If still want to show marker, and hide those lines, try this. (MPAndroidChart v3.0.0)

如果还想显示标记,并隐藏这些线,试试这个。(MPAndroidChart v3.0.0)

dataSet.setDrawHorizontalHighlightIndicator(false); dataSet.setDrawVerticalHighlightIndicator(false);

dataSet.setDrawHorizontalHighlightIndicator(假);dataSet.setDrawVerticalHighlightIndicator(假);

#3


3  

To remove touch lines you can use

要删除你可以使用的触摸线。

dataSet.setDrawHighlightIndicators(false);

To remove individual indicator lines, use either one of following

若要删除单个指示符行,请使用以下命令之一。

dataSet.setDrawHorizontalHighlightIndicator(false);
dataSet.setDrawVerticalHighlightIndicator(false);

In this, 'dataSet' should be an instance of LineScatterCandleRadarDataSet (LineDataSet extending that class in the inheritance hierarchy)

在这里,'dataSet'应该是LineScatterCandleRadarDataSet的实例(LineDataSet在继承层次结构中扩展了该类)

You do not need to have mpAndroidChart Version 3. I tried this with version 2.1.6

您不需要mpAndroidChart版本3。我尝试了2.1.6版本