Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Getting error using ui-chart #7

Open
asadbsse opened this issue Feb 26, 2014 · 0 comments
Open

Getting error using ui-chart #7

asadbsse opened this issue Feb 26, 2014 · 0 comments

Comments

@asadbsse
Copy link

 I am new to angularjs and want to use ui-chart and i copy past the code from     <http://angular-ui.github.io/ui-chart/  >but it don,t show any graph.Please help me.

=================index.html=======================

<script src="angular.min.js"></script>
 <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
 <script src="dist/jquery.jqplot.min.js"></script>
 <script src="dist/plugins/jqplot.pieRenderer.js"></script>
  <script src="ui-chart.js"></script>
  <script src="ui-chart.min.js"></script>
 <script src="app.js"></script>

==============app.js=======================

angular.module('myChartingApp', ['ui.chart'])
.value('charting', {
pieChartOptions: {
seriesDefaults: {
// Make this a pie chart.
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
// Put data labels on the pie slices.
// By default, labels show the percentage of the slice.
showDataLabels: true
}
},
legend: { show:true, location: 'e' }
}
})
.controller('DemoCtrl', function ($scope, charting) {
$scope.someData = [[
['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14],
['Out of home', 16],['Commuting', 7], ['Orientation', 9]
]];

  $scope.myChartOpts = charting.pieChartOptions;
}); 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant