Git Product home page Git Product logo

jhchart's Introduction

JHChart(最新版本1.2.3)(cocopods 拉取资源包异常已经处理。最近实在太忙,没有及时回复大家的邮件,望见谅见谅!有任何需求添加至Issues即可,谢谢!)

CI Status Version License Platform

some nice chart

Well, I admit that there are a lot of other graphics libraries on the GitHub. But, because of my project needs, most of the library can not fully meet my needs. So I took out a little free time, I wrote a chart library. Initial plan to write only a few lines (my project needs), did not expect the release to GitHub after a number of friends told me that they need more styles.I don't want to tell them I just intend to do it here, so it's a bit of a development to the present 0.1.1 version, basically meet the needs of users before. Of course, the follow-up will continue to update, add more features.

List of new features for the 1.2.0 version

  • The X axis scale of the line chart is displayed vertically, and the overlap of the X axis scales is solved after the data is too long.
  • Histogram add click function.
  • The table view adds custom background and text attribute functions.

Introduction

A simple, feature rich and customizable iOS development chart library. Click here if you want to see the usage of the Chinese description.

Requirement

  • Xcode 7.0+
  • iOS 7.0+

Import library

There are two ways to use the JHChart library. * Download the current Demo directly, and then add the JHChart folder to your project * Use CocoaPod import, only need to add the following statement in your Podfile: pod 'JHChart','~>1.2.3'

(If you don't know about cocoapods, click here to go to the official website.)

Detailed usage

JHLineChart

Description: JHLineChart can create a variety of data sources linear charts, including broken lines and curves, can be based on the data source to determine whether the multiple linear table. And, according to the needs of the interval fill color. At the same time the table supports the different needs of different quadrant, here is just set the first quadrant of the sample, the other quadrant of the use of the same method.

  • first quardrant. 折线图1
  • first and second quardrant. 折线图2
  • first and fouth quardrant. 折线图2

JHScatterChart

折线图1


JHColumnChart

Description: JHColumnChart is a rolling column, you can set the data source you need to draw an array of flexible style, it not only set the column of different color, can also provide you a number of descriptive attributes used to mark different styles

  • ColumnChart for group 柱状图
  • Nomal ColumnChart 柱状图
  • ColumnChart with lineChart 柱状图

JHPieChart

Description: JHPieChart can be based on your data source and view size settings, automatically generate the appropriate size, and there is a hint of animation pie chart. When you click on a piece of pie chart, the animation shows the current cake block information.

饼状图


JHRingChart

Description: JHRingChart according to your data source, automatically calculate the proportion of relevant data, the animation shows a ring graph, and from each loop to elicit relevant information tips

环形图


JHTableChart

Description: JHTableChart for static drawing style changing table view, all the cell display style depends on the data source, do not need a special treatment of a cell, is very flexible and easy to use

表格图


JHRadarChart

Description: JHRadarChart can according to your incoming data description and calculation of drawing data, and pruning, the advantages and disadvantages of each attribute can reflect the image of the

some nice chart

联系方式

jhchart's People

Contributors

china131 avatar

Stargazers

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

Watchers

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

jhchart's Issues

谢谢大神!

真的很需要!谢谢您的无私!祝您天天开心!事事顺利!

折线图问题

折线图当数据足够多的时候,一个屏幕显示太拥挤,应该让折线图可以左右滚动显示的。

表格

表格怎么文字显示不了

JHColumnChart 375行出现一个bug

如下代码:
itemsView.backgroundColor = (UIColor *)(_columnBGcolorsArr.count<arr.count?[UIColor greenColor]:_columnBGcolorsArr[j]);

_columnBGcolorsArr是一个多重颜色数组, 这句代码在Objective-C工程中运行正常, 但是在Swift项目中会闪退
_columnBGcolorsArr[j] 得到的值是一个颜色数组[UIColor], 不能直接转化为UIColor

项目很好, 支持你

谢谢!

柱状图虚线的问题

柱状图虚线的条数不能修改吗?是固定的五条虚线吗?如果不能修改,建议作者提高定制度,修改成能够修改虚线的条数。

线条与顶点数据问题

1、线条多的话会把顶点数据字遮盖住
2、建议添加一个点击顶点会展示数据情况的功能,这样可以解决线条多的情况下由用户操作来展示数据
3、你里面的updateYScale方法更新了y轴刻度,导致yLineDataArr的属性在外面设置是没用的,y轴刻度必须是2倍值,不然会出现数据点不准
4、建议添加多数据侧滑功能,放大缩小,x轴标尺名最好可以提供竖着的,不然名字长会导致名字重叠
5、其他功能赞一个!比较全!作者辛苦了!cocoaChina看见的demo中目前比较好的,所以进来学习一下!

CocoaPods 无法安装JHChart

Log:

Installing JHChart (0.1.1)

[!] Error installing JHChart
[!] /Applications/Xcode.app/Contents/Developer/usr/bin/git clone https://git.oschina.net/kissxml/JHChartLibarary0.1.1 /var/folders/sf/1916vn853mq0vcsfdjg4914c0000gn/T/d20161212-5505-pe28iy --template= --single-branch --depth 1 --branch 0.1.1

Cloning into '/var/folders/sf/1916vn853mq0vcsfdjg4914c0000gn/T/d20161212-5505-pe28iy'...
fatal: unable to access 'https://git.oschina.net/kissxml/JHChartLibarary0.1.1/': Failed to connect to git.oschina.net port 443: Operation timed out

我查看了下,由于oschina的代码管理仓库名称被作者更改了,导致CocoaPods无法找到,请作者及时更新CocoaPods配置。

在4s,5上报错

if (isDotted) {
double ss[] = {0.5,2};

    CGContextSetLineDash(context, 0, ss, 2);
}

会报 Incompatible pointer types passing retainable parameter of type 'double [2]'to a CF function expecting 'const CGFloat * _Nullable' (aka 'const float *') type

曲线图的问题

5441b90a-85ad-4147-b49f-ca07329e77df
像这种心率的曲线图,有没有属性可以修改起始点,从四十或者五十开始,因为人的心率不可能是30以下的。

bug

表格里的bug。 修改_beginSpace后如果_tableTitleString为空的话,_lastY还是默认的15.f。
if (_tableTitleString.length>0) {
...
_lastY = _beginSpace + _tableChartTitleItemsHeight;
}
_lastY = _beginSpace;

请教

使用表格控件时候列数为10列时,宽度平分后显示上出现了问题

折线图加一条标准线的功能

你好 我有一个这样的需求 一个展示温度的曲线图, 希望能加上一条标准温度的线, 这样可以轻易看出什么时候的温度超过了标准线, 请问能否帮忙实现这功能...多谢了!
image

负数的情况下绘制错误

0fbbc1c0-132a-4b22-ba1a-f0b3821bdd6f

需要双Y轴显示数据;用"折线图-第一象限"绘图的时候,如果数据有负数,折线的位置错误。

雷达图创建了就不能更新数据

雷达图创建了就不能更新数据,比如我要点击一个按钮,修改了里面的参数,刷新图标会出问题;
目前只能通过移除图标view,重新创建

Group Bar Chart显示的样式如何设置

Demo里的柱状图显示的bar是重合在一起的。我想显示成group bar的样式,请问是哪个参数设置显示成group bar的形式?

demo中是重合的:

f3b938d1-0c9e-4de6-b6f0-d853e5b8ffdd

想要的是bar不重合的样式:

demo1

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.