最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Simple Line chart from AngularJS array - Stack Overflow

programmeradmin0浏览0评论

I have a webpage with a table made with ng-repeat. Now I want to display the prices ( = {{amount}} ) in the array, in a line chart.

Code:

<table>
    <tr ng-repeat="tx in data.transactions | filter:filterQuery">
        <td>{{tx.date}}</td>
        <td>{{tx.account}}</td>
        <td>{{tx.action}}</td>
        <td>{{tx.amount}}</td>
        <td>{{tx.categorie}}</td>
    </tr>
</table>

After some research I found some examples:

  • D3js

  • ChartJS

  • Highcharts

But I can not seem to find a tutorial or example with a simple line chart.

I have a webpage with a table made with ng-repeat. Now I want to display the prices ( = {{amount}} ) in the array, in a line chart.

Code:

<table>
    <tr ng-repeat="tx in data.transactions | filter:filterQuery">
        <td>{{tx.date}}</td>
        <td>{{tx.account}}</td>
        <td>{{tx.action}}</td>
        <td>{{tx.amount}}</td>
        <td>{{tx.categorie}}</td>
    </tr>
</table>

After some research I found some examples:

  • D3js

  • ChartJS

  • Highcharts

But I can not seem to find a tutorial or example with a simple line chart.

Share Improve this question edited Jul 5, 2017 at 13:27 Ganesh Yadav 2,6852 gold badges33 silver badges52 bronze badges asked Jan 30, 2014 at 12:14 EggheadEgghead 7,0275 gold badges22 silver badges40 bronze badges 1
  • 2 How about this tutorial? – Lars Kotthoff Commented Jan 30, 2014 at 12:18
Add a ment  | 

1 Answer 1

Reset to default 7

Try this:

http://n3-charts.github.io/line-chart/#/

  • built on top of D3.js and AngularJS
  • examples included
  • super easy to use with angular
发布评论

评论列表(0)

  1. 暂无评论