@oanda/labs-currency-strength-widget 1.0.135 → 1.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,1106 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.0.137 (2025-09-02)
7
+
8
+
9
+
10
+ ## 1.0.218 (2025-09-01)
11
+
12
+
13
+
14
+ ## 1.0.217 (2025-08-25)
15
+
16
+
17
+
18
+ ## 1.0.216 (2025-08-18)
19
+
20
+
21
+
22
+ ## 1.0.215 (2025-08-18)
23
+
24
+
25
+
26
+ ## 1.0.214 (2025-08-14)
27
+
28
+
29
+
30
+ ## 1.0.213 (2025-08-12)
31
+
32
+
33
+
34
+ ## 1.0.212 (2025-08-05)
35
+
36
+
37
+
38
+ ## 1.0.211 (2025-08-05)
39
+
40
+
41
+
42
+ ## 1.0.210 (2025-07-31)
43
+
44
+
45
+
46
+ ## 1.0.209 (2025-07-31)
47
+
48
+
49
+
50
+ ## 1.0.208 (2025-07-24)
51
+
52
+
53
+
54
+ ## 1.0.207 (2025-07-18)
55
+
56
+
57
+
58
+ ## 1.0.206 (2025-07-18)
59
+
60
+
61
+
62
+ ## 1.0.205 (2025-07-17)
63
+
64
+
65
+
66
+ ## 1.0.204 (2025-07-09)
67
+
68
+
69
+
70
+ ## 1.0.203 (2025-06-16)
71
+
72
+
73
+
74
+ ## 1.0.202 (2025-06-04)
75
+
76
+
77
+
78
+ ## 1.0.201 (2025-06-02)
79
+
80
+
81
+
82
+ ## 1.0.200 (2025-05-30)
83
+
84
+
85
+
86
+ ## 1.0.199 (2025-05-29)
87
+
88
+
89
+
90
+ ## 1.0.198 (2025-05-26)
91
+
92
+
93
+
94
+ ## 1.0.197 (2025-05-23)
95
+
96
+
97
+
98
+ ## 1.0.196 (2025-05-22)
99
+
100
+
101
+
102
+ ## 1.0.195 (2025-05-21)
103
+
104
+
105
+
106
+ ## 1.0.194 (2025-05-21)
107
+
108
+
109
+
110
+ ## 1.0.193 (2025-05-15)
111
+
112
+
113
+
114
+ ## 1.0.192 (2025-05-14)
115
+
116
+
117
+
118
+ ## 1.0.191 (2025-04-30)
119
+
120
+
121
+
122
+ ## 1.0.190 (2025-04-28)
123
+
124
+
125
+
126
+ ## 1.0.189 (2025-04-23)
127
+
128
+
129
+
130
+ ## 1.0.188 (2025-04-22)
131
+
132
+
133
+
134
+ ## 1.0.187 (2025-04-18)
135
+
136
+
137
+
138
+ ## 1.0.186 (2025-04-10)
139
+
140
+
141
+
142
+ ## 1.0.185 (2025-04-09)
143
+
144
+
145
+
146
+ ## 1.0.184 (2025-04-08)
147
+
148
+
149
+
150
+ ## 1.0.183 (2025-04-04)
151
+
152
+
153
+
154
+ ## 1.0.182 (2025-03-21)
155
+
156
+
157
+
158
+ ## 1.0.181 (2025-03-13)
159
+
160
+
161
+
162
+ ## 1.0.180 (2025-01-30)
163
+
164
+
165
+
166
+ ## 1.0.179 (2025-01-29)
167
+
168
+
169
+
170
+ ## 1.0.178 (2025-01-12)
171
+
172
+
173
+
174
+ ## 1.0.177 (2025-01-10)
175
+
176
+
177
+
178
+ ## 1.0.176 (2025-01-10)
179
+
180
+
181
+
182
+ ## 1.0.175 (2025-01-08)
183
+
184
+
185
+
186
+ ## 1.0.174 (2024-12-16)
187
+
188
+
189
+
190
+ ## 1.0.173 (2024-12-11)
191
+
192
+
193
+
194
+ ## 1.0.172 (2024-11-29)
195
+
196
+
197
+
198
+ ## 1.0.171 (2024-11-28)
199
+
200
+
201
+
202
+ ## 1.0.170 (2024-11-28)
203
+
204
+
205
+
206
+ ## 1.0.169 (2024-11-20)
207
+
208
+
209
+
210
+ ## 1.0.168 (2024-11-19)
211
+
212
+
213
+
214
+ ## 1.0.167 (2024-10-14)
215
+
216
+
217
+
218
+ ## 1.0.166 (2024-10-07)
219
+
220
+
221
+
222
+ ## 1.0.165 (2024-10-03)
223
+
224
+
225
+
226
+ ## 1.0.164 (2024-09-26)
227
+
228
+
229
+
230
+ ## 1.0.163 (2024-09-18)
231
+
232
+
233
+
234
+ ## 1.0.162 (2024-09-12)
235
+
236
+
237
+
238
+ ## 1.0.161 (2024-09-11)
239
+
240
+
241
+
242
+ ## 1.0.160 (2024-09-10)
243
+
244
+
245
+
246
+ ## 1.0.159 (2024-09-09)
247
+
248
+
249
+
250
+ ## 1.0.158 (2024-09-04)
251
+
252
+
253
+
254
+ ## 1.0.157 (2024-09-04)
255
+
256
+
257
+
258
+ ## 1.0.156 (2024-09-02)
259
+
260
+
261
+
262
+ ## 1.0.155 (2024-08-29)
263
+
264
+
265
+
266
+ ## 1.0.154 (2024-08-29)
267
+
268
+
269
+
270
+ ## 1.0.153 (2024-08-23)
271
+
272
+
273
+
274
+ ## 1.0.152 (2024-08-23)
275
+
276
+
277
+
278
+ ## 1.0.151 (2024-08-20)
279
+
280
+
281
+
282
+ ## 1.0.150 (2024-08-19)
283
+
284
+
285
+
286
+ ## 1.0.149 (2024-08-07)
287
+
288
+
289
+
290
+ ## 1.0.148 (2024-08-01)
291
+
292
+
293
+
294
+ ## 1.0.147 (2024-08-01)
295
+
296
+
297
+
298
+ ## 1.0.146 (2024-07-26)
299
+
300
+
301
+
302
+ ## 1.0.145 (2024-07-25)
303
+
304
+
305
+
306
+ ## 1.0.144 (2024-07-22)
307
+
308
+
309
+
310
+ ## 1.0.143 (2024-07-19)
311
+
312
+
313
+
314
+ ## 1.0.142 (2024-07-16)
315
+
316
+
317
+
318
+ ## 1.0.141 (2024-07-16)
319
+
320
+
321
+
322
+ ## 1.0.140 (2024-07-12)
323
+
324
+
325
+
326
+ ## 1.0.139 (2024-07-12)
327
+
328
+
329
+
330
+ ## 1.0.138 (2024-07-10)
331
+
332
+
333
+
334
+ ## 1.0.137 (2024-07-05)
335
+
336
+
337
+
338
+ ## 1.0.136 (2024-07-03)
339
+
340
+
341
+
342
+ ## 1.0.135 (2024-07-03)
343
+
344
+
345
+
346
+ ## 1.0.134 (2024-07-03)
347
+
348
+
349
+
350
+ ## 1.0.133 (2024-06-28)
351
+
352
+
353
+
354
+ ## 1.0.132 (2024-06-27)
355
+
356
+
357
+
358
+ ## 1.0.131 (2024-06-27)
359
+
360
+
361
+
362
+ ## 1.0.130 (2024-06-26)
363
+
364
+
365
+
366
+ ## 1.0.129 (2024-06-17)
367
+
368
+
369
+
370
+ ## 1.0.128 (2024-06-17)
371
+
372
+
373
+
374
+ ## 1.0.127 (2024-06-10)
375
+
376
+
377
+
378
+ ## 1.0.126 (2024-05-29)
379
+
380
+
381
+
382
+ ## 1.0.125 (2024-05-29)
383
+
384
+
385
+
386
+ ## 1.0.124 (2024-05-29)
387
+
388
+
389
+
390
+ ## 1.0.123 (2024-05-28)
391
+
392
+
393
+
394
+ ## 1.0.122 (2024-05-27)
395
+
396
+
397
+
398
+ ## 1.0.121 (2024-05-27)
399
+
400
+
401
+
402
+ ## 1.0.120 (2024-05-24)
403
+
404
+
405
+
406
+ ## 1.0.119 (2024-05-17)
407
+
408
+
409
+
410
+ ## 1.0.118 (2024-05-09)
411
+
412
+
413
+
414
+ ## 1.0.117 (2024-05-07)
415
+
416
+
417
+
418
+ ## 1.0.116 (2024-04-23)
419
+
420
+
421
+
422
+ ## 1.0.115 (2024-04-22)
423
+
424
+
425
+
426
+ ## 1.0.114 (2024-04-19)
427
+
428
+
429
+
430
+ ## 1.0.113 (2024-04-19)
431
+
432
+
433
+
434
+ ## 1.0.112 (2024-04-15)
435
+
436
+
437
+
438
+ ## 1.0.111 (2024-04-11)
439
+
440
+
441
+
442
+ ## 1.0.110 (2024-04-05)
443
+
444
+
445
+
446
+ ## 1.0.109 (2024-04-05)
447
+
448
+
449
+
450
+ ## 1.0.108 (2024-04-04)
451
+
452
+
453
+
454
+ ## 1.0.107 (2024-04-03)
455
+
456
+
457
+
458
+ ## 1.0.106 (2024-03-29)
459
+
460
+
461
+
462
+ ## 1.0.105 (2024-03-28)
463
+
464
+
465
+
466
+ ## 1.0.104 (2024-03-21)
467
+
468
+
469
+
470
+ ## 1.0.103 (2024-03-20)
471
+
472
+
473
+
474
+ ## 1.0.102 (2024-03-20)
475
+
476
+
477
+
478
+ ## 1.0.101 (2024-03-13)
479
+
480
+
481
+
482
+ ## 1.0.100 (2024-03-12)
483
+
484
+
485
+
486
+ ## 1.0.99 (2024-03-11)
487
+
488
+
489
+
490
+ ## 1.0.98 (2024-03-07)
491
+
492
+
493
+
494
+ ## 1.0.97 (2024-03-06)
495
+
496
+
497
+
498
+ ## 1.0.96 (2024-03-06)
499
+
500
+
501
+
502
+ ## 1.0.95 (2024-03-04)
503
+
504
+
505
+
506
+ ## 1.0.94 (2024-02-29)
507
+
508
+
509
+
510
+ ## 1.0.93 (2024-02-28)
511
+
512
+
513
+
514
+ ## 1.0.92 (2024-02-28)
515
+
516
+
517
+
518
+ ## 1.0.91 (2024-02-23)
519
+
520
+
521
+
522
+ ## 1.0.90 (2024-02-23)
523
+
524
+
525
+
526
+ ## 1.0.89 (2024-02-21)
527
+
528
+
529
+
530
+ ## 1.0.88 (2024-02-21)
531
+
532
+
533
+
534
+ ## 1.0.87 (2024-02-20)
535
+
536
+
537
+
538
+ ## 1.0.86 (2024-02-20)
539
+
540
+
541
+
542
+ ## 1.0.85 (2024-02-13)
543
+
544
+
545
+
546
+ ## 1.0.84 (2024-02-13)
547
+
548
+
549
+
550
+ ## 1.0.83 (2024-02-09)
551
+
552
+ **Note:** Version bump only for package @oanda/labs-currency-strength-widget
553
+
554
+
555
+
556
+
557
+
558
+ ## 1.0.136 (2025-09-01)
559
+
560
+
561
+
562
+ ## 1.0.217 (2025-08-25)
563
+
564
+
565
+
566
+ ## 1.0.216 (2025-08-18)
567
+
568
+
569
+
570
+ ## 1.0.215 (2025-08-18)
571
+
572
+
573
+
574
+ ## 1.0.214 (2025-08-14)
575
+
576
+
577
+
578
+ ## 1.0.213 (2025-08-12)
579
+
580
+
581
+
582
+ ## 1.0.212 (2025-08-05)
583
+
584
+
585
+
586
+ ## 1.0.211 (2025-08-05)
587
+
588
+
589
+
590
+ ## 1.0.210 (2025-07-31)
591
+
592
+
593
+
594
+ ## 1.0.209 (2025-07-31)
595
+
596
+
597
+
598
+ ## 1.0.208 (2025-07-24)
599
+
600
+
601
+
602
+ ## 1.0.207 (2025-07-18)
603
+
604
+
605
+
606
+ ## 1.0.206 (2025-07-18)
607
+
608
+
609
+
610
+ ## 1.0.205 (2025-07-17)
611
+
612
+
613
+
614
+ ## 1.0.204 (2025-07-09)
615
+
616
+
617
+
618
+ ## 1.0.203 (2025-06-16)
619
+
620
+
621
+
622
+ ## 1.0.202 (2025-06-04)
623
+
624
+
625
+
626
+ ## 1.0.201 (2025-06-02)
627
+
628
+
629
+
630
+ ## 1.0.200 (2025-05-30)
631
+
632
+
633
+
634
+ ## 1.0.199 (2025-05-29)
635
+
636
+
637
+
638
+ ## 1.0.198 (2025-05-26)
639
+
640
+
641
+
642
+ ## 1.0.197 (2025-05-23)
643
+
644
+
645
+
646
+ ## 1.0.196 (2025-05-22)
647
+
648
+
649
+
650
+ ## 1.0.195 (2025-05-21)
651
+
652
+
653
+
654
+ ## 1.0.194 (2025-05-21)
655
+
656
+
657
+
658
+ ## 1.0.193 (2025-05-15)
659
+
660
+
661
+
662
+ ## 1.0.192 (2025-05-14)
663
+
664
+
665
+
666
+ ## 1.0.191 (2025-04-30)
667
+
668
+
669
+
670
+ ## 1.0.190 (2025-04-28)
671
+
672
+
673
+
674
+ ## 1.0.189 (2025-04-23)
675
+
676
+
677
+
678
+ ## 1.0.188 (2025-04-22)
679
+
680
+
681
+
682
+ ## 1.0.187 (2025-04-18)
683
+
684
+
685
+
686
+ ## 1.0.186 (2025-04-10)
687
+
688
+
689
+
690
+ ## 1.0.185 (2025-04-09)
691
+
692
+
693
+
694
+ ## 1.0.184 (2025-04-08)
695
+
696
+
697
+
698
+ ## 1.0.183 (2025-04-04)
699
+
700
+
701
+
702
+ ## 1.0.182 (2025-03-21)
703
+
704
+
705
+
706
+ ## 1.0.181 (2025-03-13)
707
+
708
+
709
+
710
+ ## 1.0.180 (2025-01-30)
711
+
712
+
713
+
714
+ ## 1.0.179 (2025-01-29)
715
+
716
+
717
+
718
+ ## 1.0.178 (2025-01-12)
719
+
720
+
721
+
722
+ ## 1.0.177 (2025-01-10)
723
+
724
+
725
+
726
+ ## 1.0.176 (2025-01-10)
727
+
728
+
729
+
730
+ ## 1.0.175 (2025-01-08)
731
+
732
+
733
+
734
+ ## 1.0.174 (2024-12-16)
735
+
736
+
737
+
738
+ ## 1.0.173 (2024-12-11)
739
+
740
+
741
+
742
+ ## 1.0.172 (2024-11-29)
743
+
744
+
745
+
746
+ ## 1.0.171 (2024-11-28)
747
+
748
+
749
+
750
+ ## 1.0.170 (2024-11-28)
751
+
752
+
753
+
754
+ ## 1.0.169 (2024-11-20)
755
+
756
+
757
+
758
+ ## 1.0.168 (2024-11-19)
759
+
760
+
761
+
762
+ ## 1.0.167 (2024-10-14)
763
+
764
+
765
+
766
+ ## 1.0.166 (2024-10-07)
767
+
768
+
769
+
770
+ ## 1.0.165 (2024-10-03)
771
+
772
+
773
+
774
+ ## 1.0.164 (2024-09-26)
775
+
776
+
777
+
778
+ ## 1.0.163 (2024-09-18)
779
+
780
+
781
+
782
+ ## 1.0.162 (2024-09-12)
783
+
784
+
785
+
786
+ ## 1.0.161 (2024-09-11)
787
+
788
+
789
+
790
+ ## 1.0.160 (2024-09-10)
791
+
792
+
793
+
794
+ ## 1.0.159 (2024-09-09)
795
+
796
+
797
+
798
+ ## 1.0.158 (2024-09-04)
799
+
800
+
801
+
802
+ ## 1.0.157 (2024-09-04)
803
+
804
+
805
+
806
+ ## 1.0.156 (2024-09-02)
807
+
808
+
809
+
810
+ ## 1.0.155 (2024-08-29)
811
+
812
+
813
+
814
+ ## 1.0.154 (2024-08-29)
815
+
816
+
817
+
818
+ ## 1.0.153 (2024-08-23)
819
+
820
+
821
+
822
+ ## 1.0.152 (2024-08-23)
823
+
824
+
825
+
826
+ ## 1.0.151 (2024-08-20)
827
+
828
+
829
+
830
+ ## 1.0.150 (2024-08-19)
831
+
832
+
833
+
834
+ ## 1.0.149 (2024-08-07)
835
+
836
+
837
+
838
+ ## 1.0.148 (2024-08-01)
839
+
840
+
841
+
842
+ ## 1.0.147 (2024-08-01)
843
+
844
+
845
+
846
+ ## 1.0.146 (2024-07-26)
847
+
848
+
849
+
850
+ ## 1.0.145 (2024-07-25)
851
+
852
+
853
+
854
+ ## 1.0.144 (2024-07-22)
855
+
856
+
857
+
858
+ ## 1.0.143 (2024-07-19)
859
+
860
+
861
+
862
+ ## 1.0.142 (2024-07-16)
863
+
864
+
865
+
866
+ ## 1.0.141 (2024-07-16)
867
+
868
+
869
+
870
+ ## 1.0.140 (2024-07-12)
871
+
872
+
873
+
874
+ ## 1.0.139 (2024-07-12)
875
+
876
+
877
+
878
+ ## 1.0.138 (2024-07-10)
879
+
880
+
881
+
882
+ ## 1.0.137 (2024-07-05)
883
+
884
+
885
+
886
+ ## 1.0.136 (2024-07-03)
887
+
888
+
889
+
890
+ ## 1.0.135 (2024-07-03)
891
+
892
+
893
+
894
+ ## 1.0.134 (2024-07-03)
895
+
896
+
897
+
898
+ ## 1.0.133 (2024-06-28)
899
+
900
+
901
+
902
+ ## 1.0.132 (2024-06-27)
903
+
904
+
905
+
906
+ ## 1.0.131 (2024-06-27)
907
+
908
+
909
+
910
+ ## 1.0.130 (2024-06-26)
911
+
912
+
913
+
914
+ ## 1.0.129 (2024-06-17)
915
+
916
+
917
+
918
+ ## 1.0.128 (2024-06-17)
919
+
920
+
921
+
922
+ ## 1.0.127 (2024-06-10)
923
+
924
+
925
+
926
+ ## 1.0.126 (2024-05-29)
927
+
928
+
929
+
930
+ ## 1.0.125 (2024-05-29)
931
+
932
+
933
+
934
+ ## 1.0.124 (2024-05-29)
935
+
936
+
937
+
938
+ ## 1.0.123 (2024-05-28)
939
+
940
+
941
+
942
+ ## 1.0.122 (2024-05-27)
943
+
944
+
945
+
946
+ ## 1.0.121 (2024-05-27)
947
+
948
+
949
+
950
+ ## 1.0.120 (2024-05-24)
951
+
952
+
953
+
954
+ ## 1.0.119 (2024-05-17)
955
+
956
+
957
+
958
+ ## 1.0.118 (2024-05-09)
959
+
960
+
961
+
962
+ ## 1.0.117 (2024-05-07)
963
+
964
+
965
+
966
+ ## 1.0.116 (2024-04-23)
967
+
968
+
969
+
970
+ ## 1.0.115 (2024-04-22)
971
+
972
+
973
+
974
+ ## 1.0.114 (2024-04-19)
975
+
976
+
977
+
978
+ ## 1.0.113 (2024-04-19)
979
+
980
+
981
+
982
+ ## 1.0.112 (2024-04-15)
983
+
984
+
985
+
986
+ ## 1.0.111 (2024-04-11)
987
+
988
+
989
+
990
+ ## 1.0.110 (2024-04-05)
991
+
992
+
993
+
994
+ ## 1.0.109 (2024-04-05)
995
+
996
+
997
+
998
+ ## 1.0.108 (2024-04-04)
999
+
1000
+
1001
+
1002
+ ## 1.0.107 (2024-04-03)
1003
+
1004
+
1005
+
1006
+ ## 1.0.106 (2024-03-29)
1007
+
1008
+
1009
+
1010
+ ## 1.0.105 (2024-03-28)
1011
+
1012
+
1013
+
1014
+ ## 1.0.104 (2024-03-21)
1015
+
1016
+
1017
+
1018
+ ## 1.0.103 (2024-03-20)
1019
+
1020
+
1021
+
1022
+ ## 1.0.102 (2024-03-20)
1023
+
1024
+
1025
+
1026
+ ## 1.0.101 (2024-03-13)
1027
+
1028
+
1029
+
1030
+ ## 1.0.100 (2024-03-12)
1031
+
1032
+
1033
+
1034
+ ## 1.0.99 (2024-03-11)
1035
+
1036
+
1037
+
1038
+ ## 1.0.98 (2024-03-07)
1039
+
1040
+
1041
+
1042
+ ## 1.0.97 (2024-03-06)
1043
+
1044
+
1045
+
1046
+ ## 1.0.96 (2024-03-06)
1047
+
1048
+
1049
+
1050
+ ## 1.0.95 (2024-03-04)
1051
+
1052
+
1053
+
1054
+ ## 1.0.94 (2024-02-29)
1055
+
1056
+
1057
+
1058
+ ## 1.0.93 (2024-02-28)
1059
+
1060
+
1061
+
1062
+ ## 1.0.92 (2024-02-28)
1063
+
1064
+
1065
+
1066
+ ## 1.0.91 (2024-02-23)
1067
+
1068
+
1069
+
1070
+ ## 1.0.90 (2024-02-23)
1071
+
1072
+
1073
+
1074
+ ## 1.0.89 (2024-02-21)
1075
+
1076
+
1077
+
1078
+ ## 1.0.88 (2024-02-21)
1079
+
1080
+
1081
+
1082
+ ## 1.0.87 (2024-02-20)
1083
+
1084
+
1085
+
1086
+ ## 1.0.86 (2024-02-20)
1087
+
1088
+
1089
+
1090
+ ## 1.0.85 (2024-02-13)
1091
+
1092
+
1093
+
1094
+ ## 1.0.84 (2024-02-13)
1095
+
1096
+
1097
+
1098
+ ## 1.0.83 (2024-02-09)
1099
+
1100
+ **Note:** Version bump only for package @oanda/labs-currency-strength-widget
1101
+
1102
+
1103
+
1104
+
1105
+
6
1106
  ## 1.0.135 (2025-08-25)
7
1107
 
8
1108
 
@@ -27,6 +27,7 @@ const getOption = _ref => {
27
27
  return {
28
28
  animation: false,
29
29
  title: {
30
+ top: '0px',
30
31
  left: 'center',
31
32
  text: `${currency} vs`,
32
33
  textStyle: {
@@ -1 +1 @@
1
- {"version":3,"file":"getOption.js","names":["_labsWidgetCommon","require","_constants","_formatters","getOption","_ref","values","currency","isDark","lang","currencies","map","item","percentages","percentage","barColors","darkBarColors","lightBarColors","gridLines","getGridLines","chartWidth","CHART_WIDTH","chartHeight","CHART_HEIGHT","xLabelsSize","yLabelSize","animation","title","left","text","textStyle","fontSize","lineHeight","fontWeight","grid","name","top","right","Y_LABEL_SIZE","bottom","X_LABEL_SIZE","graphic","tooltip","trigger","formatter","_ref2","marker","value","tooltipFormatter","axisPointer","axis","extraCssText","xAxis","type","data","axisTick","show","axisLine","splitLine","axisLabel","yAxis","position","min","Math","floor","max","ceil","interval","series","emphasis","disabled","itemStyle","opacity","color","_ref3","positive","negative","zero","exports"],"sources":["../../../../../src/CurrencyStrengthWidget/components/Chart/getOption.ts"],"sourcesContent":["import { getGridLines } from '@oanda/labs-widget-common';\n\nimport {\n CHART_HEIGHT,\n CHART_WIDTH,\n darkBarColors,\n lightBarColors,\n X_LABEL_SIZE,\n Y_LABEL_SIZE,\n} from './constants';\nimport { tooltipFormatter } from './formatters';\nimport type { GetOptionProps } from './types';\n\nexport const getOption = ({\n values,\n currency,\n isDark,\n lang,\n}: GetOptionProps) => {\n const currencies = values.map((item) => item.currency);\n const percentages = values.map((item) => item.percentage);\n const barColors = isDark ? darkBarColors : lightBarColors;\n\n const gridLines = getGridLines({\n isDark,\n chartWidth: CHART_WIDTH,\n chartHeight: CHART_HEIGHT,\n xLabelsSize: -2,\n yLabelSize: -3,\n });\n\n return {\n animation: false,\n title: {\n left: 'center',\n text: `${currency} vs`,\n textStyle: {\n fontSize: 12,\n lineHeight: 20,\n fontWeight: 400,\n },\n },\n grid: [\n {\n name: 'main-grid',\n top: '30px',\n right: '0px',\n left: `${Y_LABEL_SIZE}px`,\n bottom: `${X_LABEL_SIZE}px`,\n },\n ],\n graphic: [...gridLines],\n tooltip: {\n trigger: 'axis',\n formatter: ([{ marker, name, value }]: {\n marker: string;\n name: string;\n value: number;\n }[]) =>\n tooltipFormatter({\n lang,\n currency,\n marker,\n name,\n value,\n }),\n axisPointer: {\n axis: 'x',\n },\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n data: currencies,\n axisTick: { show: false },\n axisLine: { show: false },\n splitLine: { show: false },\n axisLabel: {\n fontSize: 10,\n },\n },\n yAxis: {\n type: 'value',\n position: 'left',\n min: Math.floor(Math.min(...percentages)),\n max: Math.ceil(Math.max(...percentages)),\n interval: 1,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}%',\n fontSize: 10,\n },\n },\n series: [\n {\n data: percentages,\n type: 'bar',\n emphasis: {\n disabled: true,\n },\n itemStyle: {\n opacity: 1,\n color: ({ data }: { data: number }) => {\n if (data > 0) {\n return barColors.positive;\n }\n if (data < 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A,IAAgC;UAAA,IAA/B;YAAEpB;UAAuB,CAAC,GAAAoB,KAAA;UAChC,IAAIpB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAOvC,SAAS,CAAC4D,QAAQ;UAC3B;UACA,IAAIrB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAOvC,SAAS,CAAC6D,QAAQ;UAC3B;UACA,OAAO7D,SAAS,CAAC8D,IAAI;QACvB;MACF;IACF,CAAC;EAEL,CAAC;AACH,CAAC;AAACC,OAAA,CAAA1E,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"file":"getOption.js","names":["_labsWidgetCommon","require","_constants","_formatters","getOption","_ref","values","currency","isDark","lang","currencies","map","item","percentages","percentage","barColors","darkBarColors","lightBarColors","gridLines","getGridLines","chartWidth","CHART_WIDTH","chartHeight","CHART_HEIGHT","xLabelsSize","yLabelSize","animation","title","top","left","text","textStyle","fontSize","lineHeight","fontWeight","grid","name","right","Y_LABEL_SIZE","bottom","X_LABEL_SIZE","graphic","tooltip","trigger","formatter","_ref2","marker","value","tooltipFormatter","axisPointer","axis","extraCssText","xAxis","type","data","axisTick","show","axisLine","splitLine","axisLabel","yAxis","position","min","Math","floor","max","ceil","interval","series","emphasis","disabled","itemStyle","opacity","color","_ref3","positive","negative","zero","exports"],"sources":["../../../../../src/CurrencyStrengthWidget/components/Chart/getOption.ts"],"sourcesContent":["import { getGridLines } from '@oanda/labs-widget-common';\n\nimport {\n CHART_HEIGHT,\n CHART_WIDTH,\n darkBarColors,\n lightBarColors,\n X_LABEL_SIZE,\n Y_LABEL_SIZE,\n} from './constants';\nimport { tooltipFormatter } from './formatters';\nimport type { GetOptionProps } from './types';\n\nexport const getOption = ({\n values,\n currency,\n isDark,\n lang,\n}: GetOptionProps) => {\n const currencies = values.map((item) => item.currency);\n const percentages = values.map((item) => item.percentage);\n const barColors = isDark ? darkBarColors : lightBarColors;\n\n const gridLines = getGridLines({\n isDark,\n chartWidth: CHART_WIDTH,\n chartHeight: CHART_HEIGHT,\n xLabelsSize: -2,\n yLabelSize: -3,\n });\n\n return {\n animation: false,\n title: {\n top: '0px',\n left: 'center',\n text: `${currency} vs`,\n textStyle: {\n fontSize: 12,\n lineHeight: 20,\n fontWeight: 400,\n },\n },\n grid: [\n {\n name: 'main-grid',\n top: '30px',\n right: '0px',\n left: `${Y_LABEL_SIZE}px`,\n bottom: `${X_LABEL_SIZE}px`,\n },\n ],\n graphic: [...gridLines],\n tooltip: {\n trigger: 'axis',\n formatter: ([{ marker, name, value }]: {\n marker: string;\n name: string;\n value: number;\n }[]) =>\n tooltipFormatter({\n lang,\n currency,\n marker,\n name,\n value,\n }),\n axisPointer: {\n axis: 'x',\n },\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n data: currencies,\n axisTick: { show: false },\n axisLine: { show: false },\n splitLine: { show: false },\n axisLabel: {\n fontSize: 10,\n },\n },\n yAxis: {\n type: 'value',\n position: 'left',\n min: Math.floor(Math.min(...percentages)),\n max: Math.ceil(Math.max(...percentages)),\n interval: 1,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}%',\n fontSize: 10,\n },\n },\n series: [\n {\n data: percentages,\n type: 'bar',\n emphasis: {\n disabled: true,\n },\n itemStyle: {\n opacity: 1,\n color: ({ data }: { data: number }) => {\n if (data > 0) {\n return barColors.positive;\n }\n if (data < 0) {\n return barColors.negative;\n }\n return barColors.zero;\n },\n },\n },\n ],\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAQA,IAAAE,WAAA,GAAAF,OAAA;AAGO,MAAMG,SAAS,GAAGC,IAAA,IAKH;EAAA,IALI;IACxBC,MAAM;IACNC,QAAQ;IACRC,MAAM;IACNC;EACc,CAAC,GAAAJ,IAAA;EACf,MAAMK,UAAU,GAAGJ,MAAM,CAACK,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACL,QAAQ,CAAC;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-21,6 +21,7 @@ export const getOption = _ref => {
21
21
  return {
22
22
  animation: false,
23
23
  title: {
24
+ top: '0px',
24
25
  left: 'center',
25
26
  text: `${currency} vs`,
26
27
  textStyle: {
@@ -1 +1 @@
1
- {"version":3,"file":"getOption.js","names":["getGridLines","CHART_HEIGHT","CHART_WIDTH","darkBarColors","lightBarColors","X_LABEL_SIZE","Y_LABEL_SIZE","tooltipFormatter","getOption","_ref","values","currency","isDark","lang","currencies","map","item","percentages","percentage","barColors","gridLines","chartWidth","chartHeight","xLabelsSize","yLabelSize","animation","title","left","text","textStyle","fontSize","lineHeight","fontWeight","grid","name","top","right","bottom","graphic","tooltip","trigger","formatter","_ref2","marker","value","axisPointer","axis","extraCssText","xAxis","type","data","axisTick","show","axisLine","splitLine","axisLabel","yAxis","position","min","Math","floor","max","ceil","interval","series","emphasis","disabled","itemStyle","opacity","color","_ref3","positive","negative","zero"],"sources":["../../../../../src/CurrencyStrengthWidget/components/Chart/getOption.ts"],"sourcesContent":["import { getGridLines } from '@oanda/labs-widget-common';\n\nimport {\n CHART_HEIGHT,\n CHART_WIDTH,\n darkBarColors,\n lightBarColors,\n X_LABEL_SIZE,\n Y_LABEL_SIZE,\n} from './constants';\nimport { tooltipFormatter } from './formatters';\nimport type { GetOptionProps } from './types';\n\nexport const getOption = ({\n values,\n currency,\n isDark,\n lang,\n}: GetOptionProps) => {\n const currencies = values.map((item) => item.currency);\n const percentages = values.map((item) => item.percentage);\n const barColors = isDark ? darkBarColors : lightBarColors;\n\n const gridLines = getGridLines({\n isDark,\n chartWidth: CHART_WIDTH,\n chartHeight: CHART_HEIGHT,\n xLabelsSize: -2,\n yLabelSize: -3,\n });\n\n return {\n animation: false,\n title: {\n left: 'center',\n text: `${currency} vs`,\n textStyle: {\n fontSize: 12,\n lineHeight: 20,\n fontWeight: 400,\n },\n },\n grid: [\n {\n name: 'main-grid',\n top: '30px',\n right: '0px',\n left: `${Y_LABEL_SIZE}px`,\n bottom: `${X_LABEL_SIZE}px`,\n },\n ],\n graphic: [...gridLines],\n tooltip: {\n trigger: 'axis',\n formatter: ([{ marker, name, value }]: {\n marker: string;\n name: string;\n value: number;\n }[]) =>\n tooltipFormatter({\n lang,\n currency,\n marker,\n name,\n value,\n }),\n axisPointer: {\n axis: 'x',\n },\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n data: currencies,\n axisTick: { show: false },\n axisLine: { show: false },\n splitLine: { show: false },\n axisLabel: {\n fontSize: 10,\n },\n },\n yAxis: {\n type: 'value',\n position: 'left',\n min: Math.floor(Math.min(...percentages)),\n max: Math.ceil(Math.max(...percentages)),\n interval: 1,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}%',\n fontSize: 10,\n },\n },\n series: [\n {\n data: percentages,\n type: 'bar',\n emphasis: {\n disabled: true,\n },\n itemStyle: {\n opacity: 1,\n color: ({ data }: { data: number }) => {\n if (data > 0) {\n return barColors.positive;\n }\n if (data < 0) {\n return barColors.negative;\n }\n return barColors.zero;\n },\n },\n },\n ],\n };\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,2BAA2B;AAExD,SACEC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,YAAY,QACP,aAAa;AACpB,SAASC,gBAAgB,QAAQ,cAAc;AAG/C,OAAO,MAAMC,SAAS,GAAGC,IAAA,IAKH;EAAA,IALI;IACxBC,MAAM;IACNC,QAAQ;IACRC,MAAM;IACNC;EACc,CAAC,GAAAJ,IAAA;EACf,MAAMK,UAAU,GAAGJ,MAAM,CAACK,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACL,QAAQ,CAAC;EACtD,MAAMM,WAAW,GAAGP,MAAM,CAACK,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACE,UAAU,CAAC;EACzD,MAAMC,SAAS,GAAGP,MAAM,GAAGT,aAAa,GAAGC,cAAc;EAEzD,MAAMgB,SAAS,GAAGpB,YAAY,CAAC;IA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E;MACLP,IAAI,EAAE,OAAO;MACbQ,QAAQ,EAAE,MAAM;MAChBC,GAAG,EAAEC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACD,GAAG,CAAC,GAAGzC,WAAW,CAAC,CAAC;MACzC4C,GAAG,EAAEF,IAAI,CAACG,IAAI,CAACH,IAAI,CAACE,GAAG,CAAC,GAAG5C,WAAW,CAAC,CAAC;MACxC8C,QAAQ,EAAE,CAAC;MACXV,QAAQ,EAAE;QAAED,IAAI,EAAE;MAAM,CAAC;MACzBD,QAAQ,EAAE;QAAEC,IAAI,EAAE;MAAM,CAAC;MACzBG,SAAS,EAAE;QACTd,SAAS,EAAE,UAAU;QACrBX,QAAQ,EAAE;MACZ;IACF,CAAC;IACDkC,MAAM,EAAE,CACN;MACEd,IAAI,EAAEjC,WAAW;MACjBgC,IAAI,EAAE,KAAK;MACXgB,QAAQ,EAAE;QACRC,QAAQ,EAAE;MACZ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE,CAAC;QACVC,KAAK,EAAEC,KAAA,IAAgC;UAAA,IAA/B;YAAEpB;UAAuB,CAAC,GAAAoB,KAAA;UAChC,IAAIpB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO/B,SAAS,CAACoD,QAAQ;UAC3B;UACA,IAAIrB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO/B,SAAS,CAACqD,QAAQ;UAC3B;UACA,OAAOrD,SAAS,CAACsD,IAAI;QACvB;MACF;IACF,CAAC;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"getOption.js","names":["getGridLines","CHART_HEIGHT","CHART_WIDTH","darkBarColors","lightBarColors","X_LABEL_SIZE","Y_LABEL_SIZE","tooltipFormatter","getOption","_ref","values","currency","isDark","lang","currencies","map","item","percentages","percentage","barColors","gridLines","chartWidth","chartHeight","xLabelsSize","yLabelSize","animation","title","top","left","text","textStyle","fontSize","lineHeight","fontWeight","grid","name","right","bottom","graphic","tooltip","trigger","formatter","_ref2","marker","value","axisPointer","axis","extraCssText","xAxis","type","data","axisTick","show","axisLine","splitLine","axisLabel","yAxis","position","min","Math","floor","max","ceil","interval","series","emphasis","disabled","itemStyle","opacity","color","_ref3","positive","negative","zero"],"sources":["../../../../../src/CurrencyStrengthWidget/components/Chart/getOption.ts"],"sourcesContent":["import { getGridLines } from '@oanda/labs-widget-common';\n\nimport {\n CHART_HEIGHT,\n CHART_WIDTH,\n darkBarColors,\n lightBarColors,\n X_LABEL_SIZE,\n Y_LABEL_SIZE,\n} from './constants';\nimport { tooltipFormatter } from './formatters';\nimport type { GetOptionProps } from './types';\n\nexport const getOption = ({\n values,\n currency,\n isDark,\n lang,\n}: GetOptionProps) => {\n const currencies = values.map((item) => item.currency);\n const percentages = values.map((item) => item.percentage);\n const barColors = isDark ? darkBarColors : lightBarColors;\n\n const gridLines = getGridLines({\n isDark,\n chartWidth: CHART_WIDTH,\n chartHeight: CHART_HEIGHT,\n xLabelsSize: -2,\n yLabelSize: -3,\n });\n\n return {\n animation: false,\n title: {\n top: '0px',\n left: 'center',\n text: `${currency} vs`,\n textStyle: {\n fontSize: 12,\n lineHeight: 20,\n fontWeight: 400,\n },\n },\n grid: [\n {\n name: 'main-grid',\n top: '30px',\n right: '0px',\n left: `${Y_LABEL_SIZE}px`,\n bottom: `${X_LABEL_SIZE}px`,\n },\n ],\n graphic: [...gridLines],\n tooltip: {\n trigger: 'axis',\n formatter: ([{ marker, name, value }]: {\n marker: string;\n name: string;\n value: number;\n }[]) =>\n tooltipFormatter({\n lang,\n currency,\n marker,\n name,\n value,\n }),\n axisPointer: {\n axis: 'x',\n },\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n data: currencies,\n axisTick: { show: false },\n axisLine: { show: false },\n splitLine: { show: false },\n axisLabel: {\n fontSize: 10,\n },\n },\n yAxis: {\n type: 'value',\n position: 'left',\n min: Math.floor(Math.min(...percentages)),\n max: Math.ceil(Math.max(...percentages)),\n interval: 1,\n axisLine: { show: false },\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}%',\n fontSize: 10,\n },\n },\n series: [\n {\n data: percentages,\n type: 'bar',\n emphasis: {\n disabled: true,\n },\n itemStyle: {\n opacity: 1,\n color: ({ data }: { data: number }) => {\n if (data > 0) {\n return barColors.positive;\n }\n if (data < 0) {\n return barColors.negative;\n }\n return barColors.zero;\n },\n },\n },\n ],\n };\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,2BAA2B;AAExD,SACEC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,YAAY,QACP,aAAa;AACpB,SAASC,gBAAgB,QAAQ,cAAc;AAG/C,OAAO,MAAMC,SAAS,GAAGC,IAAA,IAKH;EAAA,IALI;IACxBC,MAAM;IACNC,QAAQ;IACRC,MAAM;IACNC;EACc,CAAC,GAAAJ,IAAA;EACf,MAAMK,UAAU,GAAGJ,MAAM,CAACK,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACL,QAAQ,CAAC;EACtD,MAAMM,WAAW,GAAGP,MAAM,CAACK,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACE,UAAU,CAAC;EACzD,MAAMC,SAAS,GAAGP,MAAM,GAAGT,aAAa,GAAGC,cAAc;EAEzD,MAAMgB,SAAS,GAAGpB,YAAY,CAAC;IAC7BY,MAAM;IACNS,UAAU,EAAEnB,WAAW;IACvBoB,WAAW,EAAErB,YAAY;IACzBsB,WAAW,EAAE,CAAC,CAAC;IACfC,UAAU,EAAE,CAAC;EACf,CAAC,CAAC;EAEF,OAAO;IACLC,SAAS,EAAE,KAAK;IAChBC,KAAK,EAAE;MACLC,GAAG,EAAE,KAAK;MACVC,IAAI,EAAE,QAAQ;MACdC,IAAI,EAAE,GAAGlB,QAAQ,KAAK;MACtBmB,SAAS,EAAE;QACTC,QAAQ,EAAE,EAAE;QACZC,UAAU,EAAE,EAAE;QACdC,UAAU,EAAE;MACd;IACF,CAAC;IACDC,IAAI,EAAE,C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S,EAAE;QACTd,SAAS,EAAE,UAAU;QACrBV,QAAQ,EAAE;MACZ;IACF,CAAC;IACDiC,MAAM,EAAE,CACN;MACEd,IAAI,EAAEjC,WAAW;MACjBgC,IAAI,EAAE,KAAK;MACXgB,QAAQ,EAAE;QACRC,QAAQ,EAAE;MACZ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE,CAAC;QACVC,KAAK,EAAEC,KAAA,IAAgC;UAAA,IAA/B;YAAEpB;UAAuB,CAAC,GAAAoB,KAAA;UAChC,IAAIpB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO/B,SAAS,CAACoD,QAAQ;UAC3B;UACA,IAAIrB,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO/B,SAAS,CAACqD,QAAQ;UAC3B;UACA,OAAOrD,SAAS,CAACsD,IAAI;QACvB;MACF;IACF,CAAC;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
@@ -2,6 +2,7 @@ import type { GetOptionProps } from './types';
2
2
  export declare const getOption: ({ values, currency, isDark, lang, }: GetOptionProps) => {
3
3
  animation: boolean;
4
4
  title: {
5
+ top: string;
5
6
  left: string;
6
7
  text: string;
7
8
  textStyle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oanda/labs-currency-strength-widget",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "description": "Labs Currency Strength Widget",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
@@ -12,10 +12,10 @@
12
12
  "author": "OANDA",
13
13
  "license": "UNLICENSED",
14
14
  "dependencies": {
15
- "@oanda/labs-widget-common": "^1.0.217",
15
+ "@oanda/labs-widget-common": "^1.0.219",
16
16
  "@oanda/mono-i18n": "10.0.1",
17
- "echarts": "5.5.0",
18
- "echarts-for-react": "3.0.2",
17
+ "echarts": "6.0.0",
18
+ "echarts-for-react": "3.0.4",
19
19
  "graphql": "16.8.1"
20
20
  },
21
21
  "devDependencies": {
@@ -23,5 +23,5 @@
23
23
  "@graphql-codegen/client-preset": "4.1.0",
24
24
  "@graphql-codegen/typescript": "4.0.1"
25
25
  },
26
- "gitHead": "5af8e3fe88c22b781e8d2db92da919ec74d4c7e3"
26
+ "gitHead": "39a4ba7320ad2596a931ebc3b19cda09da14f9de"
27
27
  }
@@ -32,6 +32,7 @@ export const getOption = ({
32
32
  return {
33
33
  animation: false,
34
34
  title: {
35
+ top: '0px',
35
36
  left: 'center',
36
37
  text: `${currency} vs`,
37
38
  textStyle: {