intro to angular directives using interactive charting directives that use highcharts

32
Intro Angular Highchart Directives What this means Interactive charts using Angular directives and Highcharts. Lakshman Prasad (twitter.com/becomingGuru) AngularJS Mini Conf Feb 11, 2014, Bangalore

Upload: lakshman-prasad

Post on 10-May-2015

3.122 views

Category:

Technology


0 download

DESCRIPTION

Talk at HasGeek's AngularJS Mini Conf, as a part of MetaRefresh 2013

TRANSCRIPT

Page 1: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

Interactive charts using Angular directives andHighcharts.

Lakshman Prasad(twitter.com/becomingGuru)

AngularJS Mini Conf

Feb 11, 2014, Bangalore

Page 2: Intro to Angular Directives using Interactive charting directives that use Highcharts

Sachin’s Stats’ Visualisation: http://j.mp/sachinst

Page 3: Intro to Angular Directives using Interactive charting directives that use Highcharts

Server side charts

Page 4: Intro to Angular Directives using Interactive charting directives that use Highcharts

Good enough for publishing statics

Page 5: Intro to Angular Directives using Interactive charting directives that use Highcharts

There are good ”modern” themes, too

Page 6: Intro to Angular Directives using Interactive charting directives that use Highcharts

The modren interactive charts

Page 7: Intro to Angular Directives using Interactive charting directives that use Highcharts

We want to choose what we want to see

Page 8: Intro to Angular Directives using Interactive charting directives that use Highcharts

Highcharts charting library

Page 9: Intro to Angular Directives using Interactive charting directives that use Highcharts

All kinds of charts. Very friendly API. Quite Performant.

Page 10: Intro to Angular Directives using Interactive charting directives that use Highcharts

JSON options

Page 11: Intro to Angular Directives using Interactive charting directives that use Highcharts

2 way binding of Angular

Page 12: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step (-1): Without Angular.

Page 13: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 0: With the relevant controller.

Page 14: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 1: The Chart directive.

Page 15: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 2: Highchart options into a factory.

Page 16: Intro to Angular Directives using Interactive charting directives that use Highcharts

Enough to render awesome HighCharts!

Page 17: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 3: Options: Watch them in the controller

Page 18: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 3b: Highchart options: Redraw, animate, instant-update

Page 19: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 4: Multi-level jsons

Page 20: Intro to Angular Directives using Interactive charting directives that use Highcharts

Step 5: Put the controller inside the directive and Child Directives.

Page 21: Intro to Angular Directives using Interactive charting directives that use Highcharts

Highly interactive chart

Page 22: Intro to Angular Directives using Interactive charting directives that use Highcharts

All it takes!

Page 23: Intro to Angular Directives using Interactive charting directives that use Highcharts

Charts and options dynamically rendered!

Page 24: Intro to Angular Directives using Interactive charting directives that use Highcharts

Deja Vu!

Page 25: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 26: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 27: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 28: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 29: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 30: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!

Page 31: Intro to Angular Directives using Interactive charting directives that use Highcharts

Intro Angular Highchart Directives What this means

In Summary

• Angular brings Engineering into frontend, the right way.

• Angular interactivity + Highcharts charting = WIN

• Provide your filtering/choosing/interactivity on the frontend.

• Optionally attach a backend Django Rest Framework, RailsAPI, Flask Restful, Seneca, ...

• Building your applications using Angular is an order ofmagnitude better. - More for charting.

• All your big data insight is available on your pocket phoneapp, beautifully!

• With these, development is a JOY!