Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart Components #29

Closed
cagataycivici opened this issue Feb 8, 2016 · 5 comments
Closed

Chart Components #29

cagataycivici opened this issue Feb 8, 2016 · 5 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@cagataycivici
Copy link
Member

Create chart components based on charts.js, charts should be updated whenever their data changes via one-way binding and also should support events like click.

  • Pie
  • Bar
  • Line
  • Doughnut
  • Radar
  • PolarArea
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Feb 8, 2016
@cagataycivici cagataycivici added this to the 0.3 milestone Feb 8, 2016
@cagataycivici cagataycivici self-assigned this Feb 8, 2016
@zamrokk
Copy link

zamrokk commented Mar 17, 2016

When I try to use LineChart I got this error :

ReferenceError: Chart is not defined
    at LineChart.initChart (http://localhost:1880/node_modules/primeng/components/chart/linechart/linechart.js:107:30)
    at LineChart.ngAfterViewInit (http://localhost:1880/node_modules/primeng/components/chart/linechart/linechart.js:70:14)
    a

coming from

this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Line(this.value, {

@zamrokk
Copy link

zamrokk commented Mar 17, 2016

I added this , and it works :

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>

@zamrokk
Copy link

zamrokk commented Mar 17, 2016

if I try to display it inside a div hidden (accordion or bootstrap collapse), then on div content visible the chart is not displayed. Is it something to do with Angular 2 ?

image

@cagataycivici
Copy link
Member Author

Please use PrimeNG forum for questions;

http://forum.primefaces.org/viewforum.php?f=35

@zamrokk
Copy link

zamrokk commented Mar 17, 2016

ok, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants