zhipingyang / xychart Goto Github PK
View Code? Open in Web Editor NEWXYChart is designed for line & bar of charts which can compare mutiple datas in form styles, and limited the range of values to show, and so on.
License: Apache License 2.0
XYChart is designed for line & bar of charts which can compare mutiple datas in form styles, and limited the range of values to show, and so on.
License: Apache License 2.0
如何让在柱形图上面的上面标注y坐标的值?
-[__NSCFConstantString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x107de32c0 一直报这个错误
if ([self.dataSource respondsToSelector:@selector(UUChart:ShowHorizonLineAtIndex:)])
How to write the swift dataSource to ensure the above respondsToSelector true?
I am trying to get multiple colors on a single bar, But no luck. Could you please guide me to get a different colors on single bar based on bar value.
How to add multiple colours on same bar. Based on bar percentage , i need to show the colours.
60% of bar with one colour, other 40% of bar with another colour
如果X轴数据比较多,一个屏幕的宽度显示不下,是否可以滑动
曲线图有办法左右滑动吗?代码里貌似只有柱状图才能左右滑动。
How to add zoom feature in this library
如题?
我发现你的UUBarChart有scrollview,为什么UULineChart不添加呢。
在viewcontroller里面实现了代理方法 datasource也设置了self,也导入了代理请问为什么没走代理方法呢?
I am able to remove horizontal lines in line graph. How can i disable vertical grid lines in line chart?
Hi,
I am trying to add two legends into one line chart
say for example,
A, B
A = {10, 11, 12} for {10/03/2017, 11/03/2017, 12/03/2017}
B = {15,17} for {10/03/2017, 12/03/2017}
The above data was not populated correctly in my chart.
So, can you help me to solve this.
我是在一个view里面添加了折线图,设置了delegate和datasource的代理为view,在里面实现了代理方法,根据服务器返回的值,设置数据后,2条曲线,前面都会重叠,点击显示时,值又是对的,比如,有一条曲线的值是 9341.00,9300.00,9200.00,838500.00,838500.00,838500.00,838500.00 ,第二条曲线的值,0,0,0,0 ,0,0,0,可是2条曲线,前面都重叠了,点击第一个点后,显示出来第一条曲线的值又是9341.00,我不知道是不是我哪里弄错了,还请帮忙解答一下。
求楼主指导,不甚感激
就是,比如我的数据有很多月份,从2001年1月到2014年12月,但是我想它的视觉范围只显示6个月的内容,滑动屏幕显示其他月份的,是否可以实现?
有办法做散点图吗
我试图将UUChartLabel中的numberOfLines设置成0,或是在给label.text赋值之后增加[label sizeToFit]; 但是都不管用,文字都只显示一半,要么是前一半,要么是上一半,请问有什么好的解决办法吗?
UUBar.m中的
換成CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
背景的barchart变成黑色
如何更改成透明的?
我没看错吧,没法设置X轴的相对值?? 那还有什么实用价值?
作者辛苦了,我有幸用到这个库,使用很方便也很好用,但是我实现出效果后,发现最大值和最小值不能显示小数点,我看了下代码没找到修改的位置,能提示下在哪修改吗
比如我yTitle是89% 结果就只能显示89 这里该怎么改
I would like to show in max and min in bar chart and I would appreciate if you can provide a solution to show it on every bar
请问这个怎么解决呢?比如我要显示30个数据走势,现在只能显示到20个。
浮点数字符串会崩溃
请问您这个Library具体是怎样使用的呢?能不能给个例子?
一个 x 标签添加多组个柱状图时候,会出现值图不对问题.请修复...
大师,为什么折线点 都是在中间,而不是 ……
//
// ViewController.m
// PKAnalyseTestProject
//
// Created by Piccolo on 2019/12/11.
// Copyright © 2019 Piccolo. All rights reserved.
//
#import "ViewController.h"
#import "XYChartDataSourceItem.h"
#import "XYChartItem.h"
#import "XYChart.h"
#import "RandomChartDataSource.h"
@interface ViewController () <XYChartDelegate> {
}
@property (nonatomic, strong) XYChart *chartView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
_chartView = [[XYChart alloc] initWithType:XYChartTypeLine];
_chartView.frame = CGRectMake(0, 100, 200, 500);
_chartView.delegate = self;
[self.view addSubview:_chartView];
XYChartDataSourceItem *a = [[RandomChartDataSource alloc] initWithStyle:XYChartTypeLine section:1 row:2];
[_chartView setDataSource:a animation:YES];
}
@end
Run this following code in single view project.
Any problem with it?
It crashed.
如何重新绘制?strokeChart 不会清除之前绘制的,没有相关方法调用重绘? 怎么解决?
How to get the grouped bar chart only from this library? Removing all other unwanted implementations.
Hi ,
I have 31 values in my graphic but only 21 of them is shown. Although i change the size of my line graphic view size it is still the same, it just strecthes, but not show all values.
What might be wrong?
hello
背景色是clear ,yLabel就有1 2 3 4 5 和我自己获取数据后的那个yLabel数组,是不是初始化的时候如果数组没值,就默认给的 1 2 3 4 5
Hi,
We have implemented Line, Bar Charts in our application and Customer also liked this graphs UI and animation.
But We have immediate requirement that, we need to fill with color between two Line charts for one Graph.
I tried a lot, but I could not get it resolve, Could you please help me to get out of this issue.
Thanks
I want to know how to get value of on which bar user click ?
how to do that?
How to show the line graph directly without animation.
I want to display value of x axis on graph node. is it possible ? or any work around ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.