GithubHelp home page GithubHelp logo

jjradarchart's Introduction

demonstrate

一款使用简单快捷的雷达图表控件, 继承于UIControl

  • 数据源方法dataSource (必须实现)

    • 一共有多少数据
      • -(NSInteger)numberOfItemsInRadarChart:(JJRadarChart*)radarChart;
    • 每组数据最大值
      • -(NSInteger)radarChart:(JJRadarChart*)radarChart maxCountAtIndex:(NSInteger)index;
    • 每组数据当前数值
      • -(NSInteger)radarChart:(JJRadarChart*)radarChart rankAtIndex:(NSInteger)index;
    • 每组数据标题
      • -(NSString*)radarChart:(JJRadarChart *)radarChart titleOfItemAtIndex:(NSInteger)index;

 

 

  • 代理方法delegate (可选)

    • 正多边形的所有顶点
      • -(void)radarChart:(JJRadarChart*)radarChart didDisplayMaxPoint:(CGPoint)point atIndex:):(NSInteger)index;
    • 每组数据当前数值所在的点
      • -(void)radarChart:(JJRadarChart*)radarChart didDisplayCurrentPoint:(CGPoint)point atIndex:(NSInteger)index;
    • 点击每组数据的标题
      • -(void)radarChart:(JJRadarChart*)radarChart didSelectedItemAtIndex:(NSInteger)index;
  • Method对象方法

    • 更新数据
      • -(void)reloadData;
    • 取出序号对应的标题按钮
      • -(UIButton*)radarItemAtIndex:(NSInteger)index;
    • 取出序号对应的值的百分比
      • (CGFloat)percentageAtIndex:(NSInteger)index;

 

 

 

jjradarchart's People

Contributors

jean1992 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.