IOS Line chart, histogram, pie chart package

Source: Internet
Author: User

encapsulates a simple line chart, histogram, pie chart

:

   Git address: https://github.com/lulushen/SLChart.git

1. Integrated line chart, histogram, pie chart

Import SLBaseChartView.h and SLPieChartView.h in ViewController.h and implement proxy <touchbasechartdelegate, Touchpiechartdelegate> and declares the attribute as shown in:

  

2, implement the histogram in the implementation file file, the bar chart implementation code such as:

  As long as the value of the x, Y axis is passed in, and many properties can be changed, the color width of the axes can be changed, specifically to view the declaration properties of the SLBaseChartView.h file.

3, in the line chart implementation code:

4, in the sector Diagram implementation code:

5, Proxy method, when the click on the graph call:

IOS Line chart, histogram, pie chart package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.