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

How to remove Cubic Line chart value? #3615

Closed
1 task done
pandapancake opened this issue Aug 29, 2018 · 4 comments
Closed
1 task done

How to remove Cubic Line chart value? #3615

pandapancake opened this issue Aug 29, 2018 · 4 comments

Comments

@pandapancake
Copy link

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

lineChartView.drawValuesEnabled = false
I found it in the chart-demo app for drawValuesEnabled (removing value)

What did you expect to happen?

I want the cubic line chart's value disappear like the charts-demonstration app
screen shot 2018-08-29 at 2 15 37 am
(I want the numbers to disappear)

What happened instead?

Error "Value of type 'LineChartView?' has no member 'drawValuesEnabled'"

Charts Environment

Charts version/Branch/Commit Number: 3.1.1
Xcode version: Xcode 10.0 beta 5
Swift version: 4
Platform(s) running Charts: iOS 11.3
macOS version running Xcode: macOS 10.13.5

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

@thierryH91200
Copy link
Contributor

thierryH91200 commented Aug 30, 2018

Are you sure ??

https://github.com/danielgindi/Charts/blob/master/Source/Charts/Data/Implementations/ChartBaseDataSet.swift

line 355

/// Set this to true to draw y-values on the chart.
    ///
    /// - note: For bar and line charts: if `maxVisibleCount` is reached, no values will be drawn even if this is enabled.
    open var drawValuesEnabled = true
    
    /// - returns: `true` if y-value drawing is enabled, `false` ifnot
    open var isDrawValuesEnabled: Bool
    {
        return drawValuesEnabled
    }

@pandapancake
Copy link
Author

pandapancake commented Aug 30, 2018

screen shot 2018-08-30 at 11 36 02 am

screen shot 2018-08-30 at 11 37 52 am

Am I missing something?? Thanks!

@thierryH91200
Copy link
Contributor

it' a implementation for ChartBaseDataSet

line.drawValuesEnabled = false

@pandapancake
Copy link
Author

It works now!!! 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