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

setScatterShape applied to Legend also #3261

Closed
BertPorter opened this issue Feb 12, 2018 · 1 comment
Closed

setScatterShape applied to Legend also #3261

BertPorter opened this issue Feb 12, 2018 · 1 comment

Comments

@BertPorter
Copy link

I'm just starting to use Charts. Working with hard-coded data as I create interface.

My code:
let line1 = ScatterChartDataSet(values: [ChartDataEntry(x: 208.97, y: 11017)], label: "Empty Wt")
line1.colors = [NSUIColor.blue]
line1.setScatterShape(.circle)
line1.drawValuesEnabled = false

The correct shape appears inside the Chart but the default shape appears in the Legend.
Any way to have the Legend reflect this change also.

Thank you.

setscattershape example

@liuxuan30
Copy link
Member

look at ChartsDemo if you are a new comers.

    /// The form/shape of the legend forms
    @objc open var form = Form.square

this should help 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