Giter Club home page Giter Club logo

ngx-charts's People

Contributors

akorchev avatar amcdnl avatar clapis avatar clydin avatar codycornell avatar dependabot[bot] avatar ericsmekens avatar haeminn avatar hitomitenshi avatar hypercubed avatar isaacplmann avatar jogaj avatar juristr avatar luisb90 avatar marjan-georgiev avatar metalex9 avatar nelsongutidev avatar ocombe avatar partomrider1 avatar peterblazejewicz avatar philippemorier avatar richavyas avatar samuelmarks avatar surya-pabbineedi avatar whein avatar williangd avatar wrobe0709 avatar yann510 avatar zhangxin511 avatar zvirja 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  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

ngx-charts's Issues

Toggle grid lines

Add an option to toggle the grid lines on bar, line, and area charts.

index.d.ts missing

need index.d.ts with
export { NG2D3Module } from './src/ng2d3';

is needed for typescript compile

Force directed graph

I'd like to have a force directed graph as part of this library. I'm working on a PR to add it.

Add tooltips

The charts are wired to use the Popover component in common/popover. The Popover component uses angular.element from angular 1 and needs to be updated to work without it though.

Demo Page

Demo page that lets me explore all types of data/formats/etc

CI

  • TravisCI
  • Hook coverage reports to codeclimate
  • Browserstack?

Responsive Layout

I know this is in your coming soon features, but I'm still adding it as the other coming soon features are open issues. I'm also interested to know if someone is already working on this? I would surely like to give a hand as this feature is a must have for responsive components!

Tooltip template as ContentChild on BaseChart

I'd like to be able to customize the tooltip for any chart that extends BaseChart.

I'll make a PR if you like the idea.

Something like this:

<some-chart>
  <template #tooltipTemplate let-model>
    {{model.customValue}} and {{some.outside.value}}
  </template>
</some-chart>

BaseChart would register @ContentChild('tooltipTemplate') tooltipTemplate: TemplateRef

And each chart would be responsible for plugging this.tooltipTemplate into the swui-template directive.

Note: I haven't thought of a good way to override the area-tooltips. I won't touch them in this PR.

Let me know what you think.

Implement smarter axis labels

Axis labels overlap. The axis components need to handle this automatically. To prevent overlap, first try to use rotation (by increasing the angle).

If the angle is 90, and there is still overlap, reduce the number of labels.

HMR

Hot module reloading to webpack dev setup

Cannot find type definition file for 'core-js'.

I'm trying to use in my project (Angular 2 + angular-cli). I installed all dependencies by npm. If I install typings of core-js solve this issue but get many conflict errors like Duplicate identifier 'PropertyKey'. What it takes to make working properly?

(if you need any more information about my project, just ask)

Convert to TypeScript

Versions

  • TypeScript 2.0

Type Definitions

If you are installing a new third-party project, you will likely need to install the typings for that
project like so npm install @types/body-parser --save-dev. If types are not available
for your module read here

Uncaught ReferenceError: __decorate is not defined

Trying to use ng2d3 with the angular2-FINAL release. I'm also using the latest angular-cli (beta-14), using webpack.

After "npm installing" the following d3 libraries (d3-array d3-brush d3-color d3-format d3-interpolate d3-scale d3-selection d3-shape), I managed to compile my project. However when I load my webapp, I get the following exception:

chart.component.js:32 Uncaught ReferenceError: __decorate is not defined

Anything else I should install?

only works with cjs

umd format not working

with systemjs

only ng2d3.cjs.js
and ng2d3.umd.js with ( format:'cjs' ) works

angular version: 2.1.0.beta.0

Missing files

It looks like a few source files are missing:

  • common/utils/number/format: in src/treemap/Cell.ts
  • common/utils/truncate: in src/pieChart/AdvancedPieChart.ts
  • countUp: in src/Cards.ts

Add event listener to manually trigger update

After adding chart resize functionality, the charts can now be resized to fit their parent containers when the window is resized. This is done by not specifying the view input property of the chart.

However, if the parent container dimensions change without the window being resized, window.resize will not fire and the chart will not be resized.

We need to add an event listener to the charts that can manually trigger update() from outside.

NgModules for RC5

We should refactor the app to use NgModules, this way we can remove the directives/pipes from all components.
Should we make an NgModule / chart type, and a global one that export everything ?

Custom formatting for values

Allow specifying custom date formatting via input properties on the charts.

This would allow us to specify the representation of numbers and dates, as well as add prefixes and suffixes to their string representations in axis labels, legends, and tooltips.

Tests

  • Unit Tests
  • Functional
  • Coverage Report

Semi related to #12

RxJS Support

Requirement

Rather than have watchers/etc, use RxJS for more 'reactive' design.

Not AoT Compatible

I'm planning to use this library, and I noticed that it isn't AoT compatible yet.

I've written an article that walks through generating *.metadata.json files for your library and troubleshooting errors that might come up. I'll work on a PR if I get a chance.

API property names

Decide on how to name the input properties:

Example: results vs data vs model

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.