@@ -27,6 +27,7 @@ DRY out your chart code by writing it all in PHP!
27
27
28
28
29
29
## License
30
+
30
31
ObHighchartsBundle is released under the MIT License. See the bundled [ LICENSE] ( LICENSE )
31
32
file for details.
32
33
@@ -44,7 +45,7 @@ for details on pricing.
44
45
``` json
45
46
"require" : {
46
47
...
47
- "ob/highcharts-bundle" : " 1.*"
48
+ "ob/highcharts-bundle" : " 1.1. *"
48
49
...
49
50
}
50
51
```
@@ -65,12 +66,7 @@ for details on pricing.
65
66
);
66
67
...
67
68
```
68
-
69
- 4 . Install the static assets
70
69
71
- ``` bash
72
- php app/console assets:install --symlink web
73
- ```
74
70
75
71
## Usage
76
72
@@ -80,6 +76,7 @@ In your controller ...
80
76
81
77
``` php
82
78
<?php
79
+
83
80
use Ob\HighchartsBundle\Highcharts\Highchart;
84
81
85
82
// ...
@@ -109,8 +106,8 @@ In your template ...
109
106
<!-- Load jQuery from Google's CDN if needed -->
110
107
<script src =" http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type =" text/javascript" ></script >
111
108
112
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/highcharts.js') }} " ></script >
113
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/modules/exporting.js') }} " ></script >
109
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ highcharts.js" ></script >
110
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ modules/exporting.js" ></script >
114
111
<script type =" text/javascript" >
115
112
{{ chart (chart) }}
116
113
</script >
@@ -128,10 +125,10 @@ argument of the twig extension like this
128
125
``` html
129
126
<!-- Load MooTools from Google's CDN if needed and the highcharts adapter -->
130
127
<script src =" https://ajax.googleapis.com/ajax/libs/mootools/1.4.2/mootools-yui-compressed.js" type =" text/javascript" ></script >
131
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/ adapters/mootools-adapter.js') }} " type =" text/javascript" ></script >
128
+ <script src =" //code. highcharts.com/4.0.1/ adapters/mootools-adapter.js" type =" text/javascript" ></script >
132
129
133
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/highcharts.js') }} " ></script >
134
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/modules/exporting.js') }} " ></script >
130
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ highcharts.js" ></script >
131
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ modules/exporting.js" ></script >
135
132
<script type =" text/javascript" >
136
133
{{ chart (chart, ' mootools' ) }}
137
134
</script >
@@ -144,8 +141,8 @@ It is also possible to render your highcharts code without a jquery or mootools
144
141
control how and when the chart is loaded or when integrating with existing code.
145
142
146
143
``` html
147
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/highcharts.js') }} " ></script >
148
- <script src =" {{ asset('bundles/obhighcharts/js/ highcharts/modules/exporting.js') }} " ></script >
144
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ highcharts.js" ></script >
145
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/ highcharts/4.0.1/ modules/exporting.js" ></script >
149
146
<script type =" text/javascript" >
150
147
myLib .chartLoad (function (data ){
151
148
{{ chart (chart, false ) }}
0 commit comments