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

Add charts to UIView programatically #3033

Closed
jeyashrinatarajan opened this issue Nov 22, 2017 · 1 comment
Closed

Add charts to UIView programatically #3033

jeyashrinatarajan opened this issue Nov 22, 2017 · 1 comment

Comments

@jeyashrinatarajan
Copy link

jeyashrinatarajan commented Nov 22, 2017

Hi can we add the charts to a UIView programatically,instead of adding it as class to the UIView it through the IB.Can it be done programatically?I tried ,but apparently it doesn't call.

  var chartView = BarChartView()

  override func viewDidLoad() {

 super.viewDidLoad()
    chartView.noDataText = "No text"
    self.view.addSubview(chartView)

}
@liuxuan30
Copy link
Member

call what? Take a look at 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