GithubHelp home page GithubHelp logo

snowpu / ngx-beautiful-charts Goto Github PK

View Code? Open in Web Editor NEW
60.0 3.0 3.0 4.41 MB

Angular Library to create beautiful data charts

Home Page: https://snowpu.github.io/ngx-beautiful-charts/

License: GNU General Public License v3.0

JavaScript 1.95% TypeScript 79.99% HTML 15.82% SCSS 2.25%
typescript graph line bar gantt timeline pie donut chart angular8

ngx-beautiful-charts's People

Contributors

dependabot[bot] avatar snowpu 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

Watchers

 avatar  avatar  avatar

ngx-beautiful-charts's Issues

1 element cases [enhancement]

Hello SnowPu,

It would be nice if the library has functionality to fill the chart even if there is only 1 element. Then it will be only 1 text label (maybe in the middle or in a place where it will looks good) and the whole chart will be filled. This is for the sunburst chart.

In addition, if there is no data, it would be nice to have 1 filled circle and in the middle to state 'No data' or another given label.

Best regards,
Vitomir

Sunburst chart's text rotation

Hey Sukanya,

I found another small issue in some cases. For example, if my first element (from the innermost circle) is less than 50%, and the other part is the rest of the sunburst chart, then the rotation of the second one is a bit weird. I attach these 2 picture to see how it is rotate when my first element is ~70% and the other ~30%, and vice-versa.
pie-chart-correct-text-rotation
pie-chart-wrong-text-rotation

great chart , easy to use and working. just update seems lacking

Hello,

I tried to append new data to ganttChartData, but seems angular not reflect changes. is the data binding not working ?

below is a method I created inside the demo of gantChartData

public OnClick() {

console.log("on Click");

this.ganttChartData.push(

  {
    name: 'Market Team',
    timelines: {
      'Market Research': [
        {from: 'July 28, 2019', to: 'September 20, 2019', info: 'wtv'}
        
      ],
      'User Documentation': [
        {from: 'August 10, 2019', to: 'September 15, 2019', info: 'wtv'}
      ]
    }
  }
);

}

Slice size is cut with the angleMod calculation

Dear Sukanya,

I really like your project and I want to use it into mine. However, I already implemented it, but there is a small problem when the parents are only 2 and they are separated, e.g., 70% to 30%. You will see it in my example with the Bus and Train slices.

I think the problem comes from the calculation of this line - 76: const angleMod = (angle > 180 ) ? 360 - angle : angle; in the sunburst component.

Can you tell me how I can fix this or if you can do it ? Thank you in advance!

Here I attach a screenshot.

Best regards,
Vitomir

Responsive width

I quickly looked at the demo and saw that the charts aren't responsive.
Unfortunatelly that's an automatic show-stopper for me

Error encountered while installation cos of angular dependency

Firstly, I liked how your timeline chart looks :) And thus wanted to try it out.
I encountered the below error while installing, which I thought should have resolved on its own, hence writing here-
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~9.1.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^8.0.1" from [email protected]
npm ERR! node_modules/ngx-beautiful-charts
npm ERR! ngx-beautiful-charts@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

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.