Git Product home page Git Product logo

ebtchartviewdemo's Introduction

动态创建直方图图表(cocoapods)

##使用指令把该库添加到项目中:

  pod 'EBTBarChartView'

#在xib或者sb上拖一个view在控制器上面并设置view的class为:EBTBarChartView,

#并拖线条通过设置对应的属性和以及调用对应的方法来实现动态创建的直方图图表

#使用案例

//设置横坐标数组值
NSArray *arr1 = @[@"1月",@"2月",@"3月",@"4月",@"5月",@"6月",@"7月"];

//设置纵坐标数组值
NSArray *arr2 = @[@80,@120,@160,@400,@180,@(160),@(140)];

self.chartView.array_Month = arr1;

[self.chartView barChartView:arr2 withChartViewColor:[UIColor colorWithRed:0.000 green:0.000 blue:0.665 alpha:1.000]];

效果演示图

Image

ebtchartviewdemo's People

Contributors

kb100824 avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.