@@ -6,7 +6,7 @@ function onSiteDependenciesLoaded() {
6
6
7
7
functionPlot ( {
8
8
target : '#description-sample' ,
9
- yAxis : { domain : [ - 1 , 9 ] } ,
9
+ y : { domain : [ - 1 , 9 ] } ,
10
10
tip : {
11
11
renderer : function ( ) { }
12
12
} ,
@@ -24,8 +24,8 @@ function onSiteDependenciesLoaded() {
24
24
25
25
functionPlot ( {
26
26
target : '#description-sin-exp-x-naive' ,
27
- yAxis : { domain : [ - 4 , 4 ] } ,
28
- xAxis : { domain : [ - 2 , 6 ] } ,
27
+ y : { domain : [ - 4 , 4 ] } ,
28
+ x : { domain : [ - 2 , 6 ] } ,
29
29
tip : {
30
30
renderer : function ( ) { }
31
31
} ,
@@ -40,8 +40,8 @@ function onSiteDependenciesLoaded() {
40
40
41
41
functionPlot ( {
42
42
target : '#description-sin-exp-x' ,
43
- yAxis : { domain : [ - 4 , 4 ] } ,
44
- xAxis : { domain : [ - 2 , 6 ] } ,
43
+ y : { domain : [ - 4 , 4 ] } ,
44
+ x : { domain : [ - 2 , 6 ] } ,
45
45
tip : {
46
46
renderer : function ( ) { }
47
47
} ,
@@ -88,12 +88,12 @@ function onSiteDependenciesLoaded() {
88
88
* - `title`: the title of the graph
89
89
* - `width`: width of the graph
90
90
* - `height`: height of the graph
91
- * - `xAxis `:
91
+ * - `x `:
92
92
* - `type`: the type of scale for this axis, possible values `linear|log`
93
93
* (default value: `'linear'`)
94
94
* - `label`: x axis label
95
95
* - `domain`: x axis possible values (see examples below)
96
- * - `yAxis `: same options as `xAxis `
96
+ * - `y `: same options as `x `
97
97
* - `disableZoom`: true to disable translation/scaling on the graph
98
98
*/
99
99
functionPlot ( {
@@ -102,11 +102,11 @@ function onSiteDependenciesLoaded() {
102
102
width : 580 ,
103
103
height : 400 ,
104
104
disableZoom : true ,
105
- xAxis : {
105
+ x : {
106
106
label : 'x - axis' ,
107
107
domain : [ - 6 , 6 ]
108
108
} ,
109
- yAxis : {
109
+ y : {
110
110
label : 'y - axis'
111
111
} ,
112
112
data : [
@@ -123,10 +123,10 @@ function onSiteDependenciesLoaded() {
123
123
*/
124
124
functionPlot ( {
125
125
target : '#grid' ,
126
- xAxis : {
126
+ x : {
127
127
label : 'real'
128
128
} ,
129
- yAxis : {
129
+ y : {
130
130
label : 'imaginary'
131
131
} ,
132
132
grid : true ,
@@ -151,8 +151,8 @@ function onSiteDependenciesLoaded() {
151
151
*/
152
152
functionPlot ( {
153
153
target : '#domain' ,
154
- yAxis : { domain : [ - 1 , 1 ] } ,
155
- xAxis : { domain : [ 8 , 24 ] } ,
154
+ y : { domain : [ - 1 , 1 ] } ,
155
+ x : { domain : [ 8 , 24 ] } ,
156
156
data : [
157
157
{
158
158
fn : 'sin(x)'
@@ -204,7 +204,7 @@ function onSiteDependenciesLoaded() {
204
204
*/
205
205
functionPlot ( {
206
206
target : '#annotations' ,
207
- yAxis : { domain : [ - 1 , 9 ] } ,
207
+ y : { domain : [ - 1 , 9 ] } ,
208
208
data : [
209
209
{
210
210
fn : 'x^2'
@@ -238,7 +238,7 @@ function onSiteDependenciesLoaded() {
238
238
*/
239
239
functionPlot ( {
240
240
target : '#closed' ,
241
- xAxis : { domain : [ - 2 , 12 ] } ,
241
+ x : { domain : [ - 2 , 12 ] } ,
242
242
data : [
243
243
{
244
244
fn : '3 + sin(x)' ,
@@ -252,16 +252,16 @@ function onSiteDependenciesLoaded() {
252
252
* ### Logarithmic scales
253
253
*
254
254
* The type of each axis can be configured to be logarithmic by specifying the
255
- * type of axis to `log` inside the `xAxis ` option, note how this
255
+ * type of axis to `log` inside the `x ` option, note how this
256
256
* change affects the way the functions are sampled
257
257
*/
258
258
functionPlot ( {
259
259
target : '#logarithmic' ,
260
- xAxis : {
260
+ x : {
261
261
type : 'log' ,
262
262
domain : [ 0.01 , 1 ]
263
263
} ,
264
- yAxis : {
264
+ y : {
265
265
domain : [ - 100 , 100 ]
266
266
} ,
267
267
grid : true ,
@@ -391,8 +391,8 @@ function onSiteDependenciesLoaded() {
391
391
*/
392
392
functionPlot ( {
393
393
target : '#secant' ,
394
- yAxis : { domain : [ - 1 , 9 ] } ,
395
- xAxis : { domain : [ - 3 , 3 ] } ,
394
+ y : { domain : [ - 1 , 9 ] } ,
395
+ x : { domain : [ - 3 , 3 ] } ,
396
396
data : [
397
397
{
398
398
fn : 'x^2' ,
@@ -448,7 +448,7 @@ function onSiteDependenciesLoaded() {
448
448
*/
449
449
functionPlot ( {
450
450
target : '#derivative' ,
451
- yAxis : { domain : [ - 1 , 9 ] } ,
451
+ y : { domain : [ - 1 , 9 ] } ,
452
452
data : [
453
453
{
454
454
fn : 'x^2' ,
@@ -469,7 +469,7 @@ function onSiteDependenciesLoaded() {
469
469
*/
470
470
functionPlot ( {
471
471
target : '#derivative-update' ,
472
- yAxis : { domain : [ - 1 , 9 ] } ,
472
+ y : { domain : [ - 1 , 9 ] } ,
473
473
data : [
474
474
{
475
475
fn : 'x^2' ,
@@ -520,13 +520,13 @@ function onSiteDependenciesLoaded() {
520
520
a = functionPlot ( {
521
521
target : '#linked-a' ,
522
522
height : 250 ,
523
- xAxis : { domain : [ - 10 , 10 ] } ,
523
+ x : { domain : [ - 10 , 10 ] } ,
524
524
data : [ { fn : 'x * x' } ]
525
525
} )
526
526
b = functionPlot ( {
527
527
target : '#linked-b' ,
528
528
height : 250 ,
529
- xAxis : { domain : [ - 10 , 10 ] } ,
529
+ x : { domain : [ - 10 , 10 ] } ,
530
530
data : [ { fn : '2 * x' } ]
531
531
} )
532
532
a . addLink ( b )
@@ -546,19 +546,19 @@ function onSiteDependenciesLoaded() {
546
546
a = functionPlot ( {
547
547
target : '#linked-a-multiple' ,
548
548
height : 250 ,
549
- xAxis : { domain : [ - 10 , 10 ] } ,
549
+ x : { domain : [ - 10 , 10 ] } ,
550
550
data : [ { fn : 'x * x' } ]
551
551
} )
552
552
b = functionPlot ( {
553
553
target : '#linked-b-multiple' ,
554
554
height : 250 ,
555
- xAxis : { domain : [ - 10 , 10 ] } ,
555
+ x : { domain : [ - 10 , 10 ] } ,
556
556
data : [ { fn : '2 * x' } ]
557
557
} )
558
558
c = functionPlot ( {
559
559
target : '#linked-c-multiple' ,
560
560
height : 250 ,
561
- xAxis : { domain : [ - 10 , 10 ] } ,
561
+ x : { domain : [ - 10 , 10 ] } ,
562
562
data : [ { fn : '2' } ]
563
563
} )
564
564
a . addLink ( b , c )
@@ -675,8 +675,8 @@ function onSiteDependenciesLoaded() {
675
675
*/
676
676
functionPlot ( {
677
677
target : '#circle-explicit' ,
678
- yAxis : { domain : [ - 1.897959183 , 1.897959183 ] } ,
679
- xAxis : { domain : [ - 3 , 3 ] } ,
678
+ y : { domain : [ - 1.897959183 , 1.897959183 ] } ,
679
+ x : { domain : [ - 3 , 3 ] } ,
680
680
data : [ { fn : 'sqrt(1 - x * x)' } , { fn : '-sqrt(1 - x * x)' } ]
681
681
} )
682
682
@@ -708,8 +708,8 @@ function onSiteDependenciesLoaded() {
708
708
*/
709
709
functionPlot ( {
710
710
target : '#parametric-circle' ,
711
- yAxis : { domain : [ - 1.897959183 , 1.897959183 ] } ,
712
- xAxis : { domain : [ - 3 , 3 ] } ,
711
+ y : { domain : [ - 1.897959183 , 1.897959183 ] } ,
712
+ x : { domain : [ - 3 , 3 ] } ,
713
713
data : [
714
714
{
715
715
x : 'cos(t)' ,
@@ -734,8 +734,8 @@ function onSiteDependenciesLoaded() {
734
734
*/
735
735
functionPlot ( {
736
736
target : '#butterfly-curve' ,
737
- yAxis : { domain : [ - 4.428571429 , 4.428571429 ] } ,
738
- xAxis : { domain : [ - 7 , 7 ] } ,
737
+ y : { domain : [ - 4.428571429 , 4.428571429 ] } ,
738
+ x : { domain : [ - 7 , 7 ] } ,
739
739
data : [
740
740
{
741
741
x : 'sin(t) * (exp(cos(t)) - 2 cos(4t) - sin(t/12)^5)' ,
@@ -774,8 +774,8 @@ function onSiteDependenciesLoaded() {
774
774
*/
775
775
functionPlot ( {
776
776
target : '#polar-circle' ,
777
- yAxis : { domain : [ - 1.897959183 , 1.897959183 ] } ,
778
- xAxis : { domain : [ - 3 , 3 ] } ,
777
+ y : { domain : [ - 1.897959183 , 1.897959183 ] } ,
778
+ x : { domain : [ - 3 , 3 ] } ,
779
779
data : [
780
780
{
781
781
r : 'r0 * cos(theta - gamma) + sqrt(a^2 - r0^2 * (sin(theta - gamma))^2)' ,
@@ -801,8 +801,8 @@ function onSiteDependenciesLoaded() {
801
801
*/
802
802
functionPlot ( {
803
803
target : '#polar-complex' ,
804
- yAxis : { domain : [ - 1.897959183 , 1.897959183 ] } ,
805
- xAxis : { domain : [ - 3 , 3 ] } ,
804
+ y : { domain : [ - 1.897959183 , 1.897959183 ] } ,
805
+ x : { domain : [ - 3 , 3 ] } ,
806
806
data : [
807
807
{
808
808
r : '2 * sin(4 theta)' ,
@@ -838,8 +838,8 @@ function onSiteDependenciesLoaded() {
838
838
*/
839
839
functionPlot ( {
840
840
target : '#circle-implicit' ,
841
- yAxis : { domain : [ - 1.897959183 , 1.897959183 ] } ,
842
- xAxis : { domain : [ - 3 , 3 ] } ,
841
+ y : { domain : [ - 1.897959183 , 1.897959183 ] } ,
842
+ x : { domain : [ - 3 , 3 ] } ,
843
843
data : [
844
844
{
845
845
fn : 'x * x + y * y - 1' ,
@@ -863,7 +863,7 @@ function onSiteDependenciesLoaded() {
863
863
functionPlot ( {
864
864
target : '#implicit-complex' ,
865
865
yAxis : { domain : [ - 3.795918366 , 3.795918366 ] } ,
866
- xAxis : { domain : [ - 6 , 6 ] } ,
866
+ x : { domain : [ - 6 , 6 ] } ,
867
867
disableZoom : true ,
868
868
data : [
869
869
{
@@ -928,7 +928,7 @@ function onSiteDependenciesLoaded() {
928
928
*/
929
929
functionPlot ( {
930
930
target : '#vector' ,
931
- xAxis : { domain : [ - 3 , 8 ] } ,
931
+ x : { domain : [ - 3 , 8 ] } ,
932
932
grid : true ,
933
933
data : [
934
934
{
0 commit comments