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

Cannot Select barChar column #3065

Closed
mdtuyen opened this issue Dec 3, 2017 · 1 comment
Closed

Cannot Select barChar column #3065

mdtuyen opened this issue Dec 3, 2017 · 1 comment

Comments

@mdtuyen
Copy link

mdtuyen commented Dec 3, 2017

Hi,
Here is my setup for barChart:

barChart.chartDescription?.enabled = false
barChart.drawGridBackgroundEnabled = false

    barChart.dragEnabled = true
    barChart.setScaleEnabled(false)
    barChart.pinchZoomEnabled = false
    barChart.rightAxis.enabled = false
    barChart.delegate = self;
    
    barChart.drawBarShadowEnabled = false;
    barChart.drawValueAboveBarEnabled = true;
    
    barChart.maxVisibleCount = 60;
    
    let xAxis = barChart.xAxis;
    xAxis.labelPosition = .bottom;
    xAxis.labelFont = UIFont.systemFont(ofSize: 10)
    xAxis.granularity = 0.01;
    xAxis.labelCount = 7;
    xAxis.valueFormatter = TimeValueFormatter();
    
    let leftAxisFormatter = NumberFormatter();
    leftAxisFormatter.minimumFractionDigits = 0;
    leftAxisFormatter.maximumFractionDigits = 1;
    
    let leftAxis = barChart.leftAxis;
    leftAxis.labelFont = UIFont.systemFont(ofSize: 10);
    leftAxis.labelCount = 8;
    leftAxis.valueFormatter = DefaultAxisValueFormatter(formatter: leftAxisFormatter);
    leftAxis.labelPosition = .outsideChart;
    leftAxis.spaceTop = 0.15;
    leftAxis.axisMinimum = 0.0;

And i see that some colume chart of me can't select or difficuit to select it.
Why?
Please help me setup it is correct.

@liuxuan30
Copy link
Member

use ChartsDemo first.

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