Giter VIP home page Giter VIP logo

animatedpieview's People

Contributors

430public avatar razerdp 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animatedpieview's Issues

How do I reduce the margin/padding around the chart

chart
How do I reduce the margins in the area around the chart which I have highlighted? It seems a bit excessive and would be nice if we had some control

I tried calling the PieManager.setChartContentRect() to change the margin values but that had no effect

Add icon to labels

Greetings

This is indeed a great library. I would like to request setting icons for every IPieInfo optionally. Ideally, it could accept a drawable or a vector. Apps supporting <21 must pass a .png while apps where min is 21 can pass a vector. This way the library doesn't have to deal with supporting vectors on older versions.
The icon would be on the side of the label, depending on the positioning and as the label the color should be the same than in the chart.

Image Example

Thanks for the awesome work :)

缺了一块

有概率个别数据出现,当焦点在缺处时它又会出现。

线的长度固定,不根据内容变化怎么操作?

该问题是怎么引起的?

线的长度固定,不根据内容变化怎么操作?

重现步骤

线的长度固定,不根据内容变化怎么操作?

报错信息

线的长度固定,不根据内容变化怎么操作?

AnimatedPieView not rendering properly

该问题是怎么引起的?

we are using PagerAdapter for rendering the graph. The issue is half the graph is rendering on the screen.
1
2
3

重现步骤

报错信息

Color in ring isn't the same than color in label

The color in the label isn't the same than color show into the pie.
Not issues in the emulator but in a real device.
Color for 61.08% is 1976D2
and the color for 38,92% is 64B5F6
The real colors are the shown in the label

Sin nombre

Unable to click on 2nd Data block when added even number of views

该问题是怎么引起的?

When I add even number of data values in config e.g 2, 4, 6, The pie is unable to click on the 2nd data block. It is not animated on click, and the click event isn't detected even in the SelectListener(). The problem doesn't arise when adding odd numbers of values such as 3,5,7.

重现步骤

Create a pieview with all default config, add even numbers of data blocks using addData (i.e calling addData even number of times). Issue will arise when unable to click on 2nd data block. Now try adding only odd number of data (i.e calling addData odd number of times). And everything runs fine.

报错信息

No error messege, only unable to detect clicks when clicked on 2nd Data block (2nd value added in config)

How to set color in piechart. ???

该问题是怎么引起的?

How to set color in PieChart. I don't know what I am doing wrong.
Following is my code.

AnimatedPieView mAnimatedPieView = (AnimatedPieView) findViewById(R.id.chart);
AnimatedPieViewConfig mConfig = mAnimatedPieView.getConfig();
IPieInfo iPieInfo= new IPieInfo() {
@OverRide
public float getValue() {
return 50;
}

        @Override
        public int getColor() {
            return R.color.green;
        }

        @Override
        public String getDesc() {
            return "Bitcoin";
        }
    };
    mConfig.addData(new SimplePieInfo(iPieInfo.getValue(), iPieInfo.getColor(),iPieInfo.getDesc()))
            .setDuration(2000)
            .setConfig(mConfig);
    mAnimatedPieView.start();

重现步骤

报错信息

1.2.5版本,动画显示有问题

1.2.5版本运行,
1、 如果有2个数据,并且有一个大于3/4,会有一个数据会闪一下
2、如果3个数据以上,并且有一个大于3/4,第一个数据会不显示
我降级到1.2.0版本就没这个问题了
另外我使用的是fragment

数据

AnimatedPieViewConfig config = new AnimatedPieViewConfig();
config.addData(new SimplePieInfo(3, getColor(R.color.bg_color4)));
config.addData(new SimplePieInfo(1, getColor(R.color.bg_color5)));
config.addData(new SimplePieInfo(83, getColor(R.color.bg_color34)));
config.splitAngle(1);
config.duration(1200);
pieChartView.applyConfig(config).start();

AnimatedPieViewConfig config = new AnimatedPieViewConfig();
config.addData(new SimplePieInfo(2, getColor(R.color.bg_color4)));
config.addData(new SimplePieInfo(43, getColor(R.color.bg_color5)));
config.splitAngle(1);
config.duration(1200);
pieChartView.applyConfig(config).start();

字体大小导致的显示问题

setTextSize(48)后,文字与甜甜圈和折线交叉了

config.setTextSize(48)
          .setTextLineStrokeWidth(4)// 设置描述文字的指示线宽度
          .setTextLineTransitionLength(50)// 设置描述文字的指示线折角处长度
          .setDirectText(false)

最后一个参数改成true也无法解决这个问题

screenshot_2018-02-01-15-45-14

Any way to change desc font family / typeface?

I've been looking on available methods and there's no way to change typeface. I also checked on library files to see if theres something I can override to change font. No fortune.

Any tips?

加载饼图时能否设置默认突出显示某个数据块

该问题是怎么引起的?

1.加载显示饼图时不能默认突出显示某个数据块,一定要点击了才能做到这种效果,希望加载饼图时能默认做到如下效果:
image
2.喜欢该库的点击效果,但是又想要MPAndroidChart那种显示效果,块里可以显示label和图例就最好了,希望以后会有这些功能。
image
image

重现步骤

报错信息

New Version

We are planning to refactor this library in the near future. We will adapt to AndroidX and fix some previous bugs. We very much hope to get your suggestions and let us improve this library.

Please provide your comments under this issue.

当pieInfo值差异过大时候没有成功显示

该问题是怎么引起的?

由于添加的数据差异过大,导致有些比例不是很大的部分无法显示出来

重现步骤

比如插入了四条数据,在华为荣耀4X 上第二条数据显示的是白色。具体插入的数据

    .addData(new SimplePieInfo(0, getColor("FF446767")), true)
                    .addData(new SimplePieInfo(50f, getColor("ff2bbc80")), true)
                    .addData(new SimplePieInfo(1641f, getColor("FFbb76b4")), true)
                    .addData(new SimplePieInfo(109f, getColor("FFFFD28C"),"长文字test"), false)






文字描述重叠问题

该问题是怎么引起的?

部分比例相对来说会小

重现步骤

config
.addData(new SimplePieInfo(50.9184314356136125, getColor("FFFFD28C"), "长文字test"), false)
.addData(new SimplePieInfo(0.11943538617599236, getColor("FF446767")), true)
.addData(new SimplePieInfo(0.11780274681129415, getColor("FFFFD28C")), true)
.addData(new SimplePieInfo(0.722165651192247, getColor("FFbb76b4")), true)
.addData(new SimplePieInfo(0.6028910840057398, getColor("ff2bbc80")), true)
.addData(new SimplePieInfo(0.1249620647212785, getColor("ff8be8ff")), true)
.addData(new SimplePieInfo(0.158853315195452116, getColor("fffa734d")), true)
.addData(new SimplePieInfo(0.6632297717331086, getColor("ff957de0")), true)
.addData(new SimplePieInfo(0.8226830459369171, getColor("FF446767")), true)

报错信息

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.