Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you get an element of the histogram, then change the color #4446

Closed
xieguangming opened this issue Aug 13, 2020 · 3 comments
Closed

If you get an element of the histogram, then change the color #4446

xieguangming opened this issue Aug 13, 2020 · 3 comments

Comments

@xieguangming
Copy link

IMG_0148

我选择第一条柱状图时,图选中状态,颜色变深,底下列表对应的数据也会变深

反过来,我点击下面列表某条数据,柱状图对应的数据颜色加深可以实现吗?

从外部单独获取柱状图某条数据,然后设置其颜色,要实现这个功能

@xieguangming xieguangming changed the title 如果获取柱状图某个元素,然后改变颜色 If you get an element of the histogram, then change the color Aug 15, 2020
@xieguangming
Copy link
Author

When I select the first bar graph, the color of the graph becomes darker when the graph is selected, and the data corresponding to the list below also becomes darker

Conversely, if I click on a piece of data in the list below, can the color of the data corresponding to the histogram be darkened?

Obtain a piece of histogram data separately from the outside, and then set its color, to achieve this function

@bivant
Copy link
Contributor

bivant commented Aug 17, 2020

Hello @xieguangming

ChartViewBase.swift

    /// Highlights the values at the given indices in the given DataSets. Provide
    /// null or an empty array to undo all highlighting. 
    /// This should be used to programmatically highlight values.
    /// This method *will not* call the delegate.
    @objc open func highlightValues(_ highs: [Highlight]?)

@xieguangming
Copy link
Author

你好@xieguangming

ChartViewBase.swift

    ///突出显示给定数据集中给定索引处的值。提供
    ///为 null或一个空数组,以撤消所有突出显示。
    ///这应该用于以编程方式突出显示值。
    ///此方法*不会*调用委托。
    @objc  开 FUNC  highlightValues(_  高位:[] ?)

Okay thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants