passelin/angular-fusioncharts — pull request #1 by skyronic (2013-07-06 08:22:31+00:00)
Title: Added samples, and minor updates to layout.

Hi!

Firstly, I haven't worked with Angular, and this PR is mainly to add sample data based on our email conversation. If you have any changes you can suggest I'll be happy to implement them.

I have added Data XML files which are shipped with FusionCharts. Some of them had some minor issues like byte-order-marks, which I have cleaned up.

I have also included a demos array, which contains Filename and the corresponding Chart Type for each chart in the demo. However, I had to make some minor modifications:

1. I removed the drop-down and moved it to a list, so it can be used with `ng-repeat`.
2. I had to make the demo-selector menu and the actual Div containing the chart go into the same Angular View and Controller.

However, the demo selector doesn't work. I tried to update the chart type, and Data XML using the `$scope` since the Chart and the Demo list are in the same app. While I can do `$scope.chartType='Column3D'` in the controller, if I set it inside the event handler, it's not working.

I will update the pull request when I figure out the solution