Skip to content

Value selected not working #668

Description

@Paget96

Now, there is no crashing, chart can be zoomed in, but pressing on entries does not highlight them.
When i set to highlight last entry via code, it works well, but on press, it does nothing.
Before last major release, everything was working completely fine

                    setOnChartValueSelectedListener(object : OnChartValueSelectedListener {
                        override fun onValueSelected(entry: Entry, highlight: Highlight) {
                            android.util.Log.d("CHART", "selected dataIndex=${highlight.dataIndex}, setIndex=${highlight.dataSetIndex}, x=${highlight.x}, y=${highlight.y}")
                            onSessionSelected(entry.data as? SessionData)
                        }

                        override fun onNothingSelected() {
                            android.util.Log.d("CHART", "nothing selected")
                            onSessionSelected(null)
                        }
                    })
Image On image, first log line is highlighting entry from the code, where last one is highlighted as a default intentional behaviur of the chart. I do press other entries on chart (there are 30+ entries), it triggers **onNothingSelected()**, so something is messed up in previous chart update.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions