@operato/scene-chartjs 7.0.8 → 7.0.10

Sign up to get free protection for your applications and to get access to all the features.
package/schema.graphql CHANGED
@@ -29,7 +29,7 @@ type AppBinding {
29
29
  email: EmailAddress!
30
30
  id: ID!
31
31
  locale: String
32
- name: String!
32
+ name: String
33
33
  owner: Boolean
34
34
  reference: String
35
35
  refreshToken: String
@@ -133,7 +133,7 @@ type ApprovalLine {
133
133
  createdAt: DateTimeISO
134
134
  creator: User
135
135
  description: String
136
- domain: Domain
136
+ domain: Domain!
137
137
  id: ID!
138
138
  model: [ApprovalLineItem!]
139
139
  name: String
@@ -283,11 +283,10 @@ type AuthProvider {
283
283
  clientSecret: String
284
284
  createdAt: DateTimeISO
285
285
  creator: User
286
- domain: Domain
286
+ domain: Domain!
287
287
  id: ID!
288
288
  params: Object
289
289
  privateKey: String
290
- state: String
291
290
  tenantId: String
292
291
  type: String
293
292
  updatedAt: DateTimeISO
@@ -305,6 +304,7 @@ type AuthProviderParameterSpec {
305
304
  name: String!
306
305
  placeholder: String
307
306
  property: Object
307
+ styles: Object
308
308
  type: String!
309
309
  }
310
310
 
@@ -411,7 +411,7 @@ type BoardTemplate {
411
411
  createdAt: DateTimeISO
412
412
  creator: User
413
413
  description: String
414
- domain: Domain
414
+ domain: Domain!
415
415
  id: ID!
416
416
  mine: Boolean!
417
417
  model: String
@@ -462,7 +462,7 @@ type CommonCode {
462
462
  creator: User
463
463
  description: String
464
464
  details: [CommonCodeDetail!]!
465
- domain: Domain
465
+ domain: Domain!
466
466
  id: ID!
467
467
  name: String!
468
468
  updatedAt: DateTimeISO
@@ -475,8 +475,9 @@ type CommonCodeDetail {
475
475
  createdAt: DateTimeISO
476
476
  creator: User
477
477
  description: String
478
- domain: Domain
478
+ domain: Domain!
479
479
  id: ID!
480
+ labels: Object
480
481
  name: String!
481
482
  rank: Float
482
483
  updatedAt: DateTimeISO
@@ -493,6 +494,7 @@ input CommonCodeDetailPatch {
493
494
  cuFlag: String
494
495
  description: String
495
496
  id: ID
497
+ labels: Object
496
498
  name: String
497
499
  rank: Float
498
500
  }
@@ -516,6 +518,7 @@ type Connection {
516
518
  creator: User
517
519
  description: String
518
520
  domain: Domain
521
+ edge: Appliance
519
522
  endpoint: String
520
523
  id: ID!
521
524
  name: String!
@@ -535,6 +538,7 @@ input ConnectionPatch {
535
538
  active: Boolean
536
539
  cuFlag: String
537
540
  description: String
541
+ edge: ObjectRef
538
542
  endpoint: String
539
543
  id: ID
540
544
  name: String
@@ -544,7 +548,8 @@ input ConnectionPatch {
544
548
 
545
549
  type ConnectionState {
546
550
  description: String
547
- domain: Domain
551
+ domain: Domain!
552
+ edge: Appliance
548
553
  id: String
549
554
  name: String
550
555
  state: String
@@ -573,7 +578,7 @@ type Contact {
573
578
  creator: User
574
579
  deletedAt: DateTimeISO
575
580
  department: String
576
- domain: Domain
581
+ domain: Domain!
577
582
  email: EmailAddress
578
583
  id: ID!
579
584
  items: [ContactItem!]
@@ -644,7 +649,7 @@ type Department {
644
649
  creator: User
645
650
  deletedAt: DateTimeISO
646
651
  description: String
647
- domain: Domain
652
+ domain: Domain!
648
653
  extension: String
649
654
  id: ID!
650
655
  manager: Employee
@@ -751,7 +756,7 @@ type Employee {
751
756
  creator: User
752
757
  deletedAt: DateTimeISO
753
758
  department: Department
754
- domain: Domain
759
+ domain: Domain!
755
760
  email: EmailAddress
756
761
  extension: String
757
762
  hiredOn: String
@@ -817,7 +822,7 @@ type Entity {
817
822
  dataProp: String
818
823
  delStrategy: String
819
824
  description: String
820
- domain: Domain
825
+ domain: Domain!
821
826
  extEntity: Boolean
822
827
  fixedColumns: Float
823
828
  id: ID!
@@ -842,7 +847,7 @@ type EntityColumn {
842
847
  creator: User
843
848
  defVal: String
844
849
  description: String
845
- domain: Domain
850
+ domain: Domain!
846
851
  entity: Entity!
847
852
  formEditor: String
848
853
  formFormat: String
@@ -1015,7 +1020,7 @@ type Font {
1015
1020
  active: Boolean!
1016
1021
  createdAt: DateTimeISO
1017
1022
  creator: User
1018
- domain: Domain
1023
+ domain: Domain!
1019
1024
  files: [Attachment!]
1020
1025
  id: ID!
1021
1026
  name: String!
@@ -1138,14 +1143,14 @@ type LoginHistoryList {
1138
1143
  type Menu {
1139
1144
  buttons: [MenuButton!]!
1140
1145
  category: String
1141
- children: [Menu!]!
1146
+ children(permittedOnly: Boolean! = false): [Menu!]!
1142
1147
  columns: [MenuColumn!]!
1143
1148
  createdAt: DateTimeISO
1144
1149
  creator: User
1145
1150
  description: String
1146
1151
  detailFormId: String
1147
1152
  detailLayout: String
1148
- domain: Domain
1153
+ domain: Domain!
1149
1154
  fixedColumns: Float
1150
1155
  gridSaveUrl: String
1151
1156
  hiddenFlag: Boolean
@@ -1157,6 +1162,7 @@ type Menu {
1157
1162
  name: String
1158
1163
  pagination: Boolean
1159
1164
  parent: Menu
1165
+ privilege: PrivilegeObject
1160
1166
  rank: Float
1161
1167
  resourceId: String
1162
1168
  resourceName: String
@@ -1178,7 +1184,7 @@ type MenuButton {
1178
1184
  auth: String
1179
1185
  createdAt: DateTimeISO
1180
1186
  creator: User
1181
- domain: Domain
1187
+ domain: Domain!
1182
1188
  icon: String
1183
1189
  id: ID!
1184
1190
  logic: String
@@ -1213,7 +1219,7 @@ type MenuColumn {
1213
1219
  creator: User
1214
1220
  defVal: String
1215
1221
  description: String
1216
- domain: Domain
1222
+ domain: Domain!
1217
1223
  extField: Boolean
1218
1224
  formEditor: String
1219
1225
  formFormat: String
@@ -1302,7 +1308,7 @@ type MenuDetail {
1302
1308
  creator: User
1303
1309
  customView: String
1304
1310
  dataProp: String
1305
- domain: Domain
1311
+ domain: Domain!
1306
1312
  entityId: String
1307
1313
  id: ID!
1308
1314
  masterField: String
@@ -1319,7 +1325,7 @@ type MenuDetail {
1319
1325
  type MenuDetailButton {
1320
1326
  createdAt: DateTimeISO
1321
1327
  creator: User
1322
- domain: Domain
1328
+ domain: Domain!
1323
1329
  icon: String
1324
1330
  id: ID!
1325
1331
  logic: String
@@ -1353,7 +1359,7 @@ type MenuDetailColumn {
1353
1359
  creator: User
1354
1360
  defVal: String
1355
1361
  description: String
1356
- domain: Domain
1362
+ domain: Domain!
1357
1363
  extField: Boolean
1358
1364
  formEditor: String
1359
1365
  formFormat: String
@@ -1478,6 +1484,7 @@ input MenuPatch {
1478
1484
  name: String
1479
1485
  pagination: Boolean
1480
1486
  parent: ObjectRef
1487
+ privilege: PrivilegeInput
1481
1488
  rank: Int
1482
1489
  resourceId: String
1483
1490
  resourceName: String
@@ -1499,6 +1506,9 @@ type Mutation {
1499
1506
  attachContact(contactId: String!, id: String!): Employee!
1500
1507
  cancelInvitation(email: EmailAddress!, reference: String!, type: String!): Boolean!
1501
1508
 
1509
+ """To clear translations cache"""
1510
+ clearTranslationsCache: Boolean!
1511
+
1502
1512
  """To clone a Board from existing Board"""
1503
1513
  cloneBoard(id: String!, patch: BoardPatch!, targetGroupId: String, targetSubdomain: String!): Board!
1504
1514
 
@@ -1643,7 +1653,7 @@ type Mutation {
1643
1653
  """To delete multiple ApprovalLines"""
1644
1654
  deleteApprovalLines(ids: [String!]!): Boolean!
1645
1655
  deleteAttachment(id: String!): Boolean!
1646
- deleteAttachmentsByRef(refBys: [String!]!): Boolean!
1656
+ deleteAttachmentsByRef(refBys: [String!]!, refType: String): Boolean!
1647
1657
 
1648
1658
  """To delete AttributeSet"""
1649
1659
  deleteAttributeSet(id: String!): Boolean!
@@ -1985,7 +1995,7 @@ type Mutation {
1985
1995
  """
1986
1996
  To run new scenario instance and will return the result after the scenario stop.
1987
1997
  """
1988
- runScenario(instanceName: String, scenarioName: String!, variables: Object): ScenarioInstance!
1998
+ runScenario(instanceName: String, scenarioName: String!, variables: Object): ScenarioInstanceRunResult!
1989
1999
  sendInvitation(email: EmailAddress!, reference: String!, type: String!): Invitation!
1990
2000
  singleUpload(file: Upload!): Attachment!
1991
2001
 
@@ -2303,12 +2313,14 @@ input NewCommonCode {
2303
2313
  input NewCommonCodeDetail {
2304
2314
  commonCode: ObjectRef!
2305
2315
  description: String
2316
+ labels: Object
2306
2317
  name: String!
2307
2318
  rank: Float!
2308
2319
  }
2309
2320
 
2310
2321
  input NewConnection {
2311
2322
  description: String
2323
+ edge: ObjectRef
2312
2324
  endpoint: String
2313
2325
  name: String!
2314
2326
  params: String
@@ -2450,6 +2462,7 @@ input NewMenu {
2450
2462
  name: String!
2451
2463
  pagination: Boolean
2452
2464
  parent: ObjectRef
2465
+ privilege: PrivilegeInput
2453
2466
  rank: Int
2454
2467
  resourceId: String
2455
2468
  resourceName: String
@@ -2666,6 +2679,7 @@ input NewScenario {
2666
2679
  privilege: PrivilegeInput
2667
2680
  schedule: String
2668
2681
  timezone: String
2682
+ ttl: Float
2669
2683
  type: String
2670
2684
  }
2671
2685
 
@@ -2677,12 +2691,34 @@ input NewSetting {
2677
2691
  }
2678
2692
 
2679
2693
  input NewStateRegister {
2694
+ """Description of the state register"""
2680
2695
  description: String
2696
+
2697
+ """Group name for the state register"""
2698
+ group: String
2699
+
2700
+ """Name of the state register"""
2681
2701
  name: String!
2702
+
2703
+ """Number of decimal places if the state is a number type"""
2704
+ place: String
2705
+
2706
+ """
2707
+ Reference to an external entity or data, used as a flexible foreign key
2708
+ """
2682
2709
  refBy: String
2710
+
2711
+ """Current state value"""
2683
2712
  state: Object
2713
+
2714
+ """Time to live for the state value in seconds"""
2684
2715
  ttl: Int
2716
+
2717
+ """Type of the state"""
2685
2718
  type: String
2719
+
2720
+ """Unit of the state value"""
2721
+ unit: String
2686
2722
  }
2687
2723
 
2688
2724
  input NewTerminology {
@@ -2724,7 +2760,7 @@ type Notification {
2724
2760
  body: String
2725
2761
  createdAt: DateTimeISO
2726
2762
  creator: User
2727
- domain: Domain
2763
+ domain: Domain!
2728
2764
  id: ID!
2729
2765
  image: String
2730
2766
  owner: User
@@ -2758,7 +2794,7 @@ type NotificationRule {
2758
2794
  creator: User
2759
2795
  deletedAt: DateTimeISO
2760
2796
  description: String
2761
- domain: Domain
2797
+ domain: Domain!
2762
2798
  id: ID!
2763
2799
  name: String
2764
2800
 
@@ -2815,7 +2851,7 @@ type Oauth2Client {
2815
2851
  createdAt: DateTimeISO
2816
2852
  creator: User
2817
2853
  description: String
2818
- domain: Domain
2854
+ domain: Domain!
2819
2855
  expires: DateTimeISO
2820
2856
  grantType: String
2821
2857
  icon: String
@@ -2948,12 +2984,12 @@ input Pagination {
2948
2984
  }
2949
2985
 
2950
2986
  type Partner {
2951
- approvedAt: DateTimeISO!
2987
+ approvedAt: DateTimeISO
2952
2988
  approver: User
2953
2989
  domain: Domain!
2954
2990
  id: ID!
2955
2991
  partnerDomain: Domain!
2956
- requestedAt: DateTimeISO!
2992
+ requestedAt: DateTimeISO
2957
2993
  requester: User
2958
2994
  }
2959
2995
 
@@ -2968,7 +3004,7 @@ type PartnerSetting {
2968
3004
  createdAt: DateTimeISO
2969
3005
  creator: User
2970
3006
  description: String
2971
- domain: Domain
3007
+ domain: Domain!
2972
3008
  id: ID!
2973
3009
  name: String
2974
3010
  partnerDomain: Domain
@@ -2997,7 +3033,7 @@ input PartnerSettingPatch {
2997
3033
  type PayloadLog {
2998
3034
  createdAt: DateTimeISO
2999
3035
  creator: User
3000
- domain: Domain
3036
+ domain: Domain!
3001
3037
  endpoint: String!
3002
3038
  id: ID!
3003
3039
  name: String!
@@ -3163,6 +3199,7 @@ type PropertySpec {
3163
3199
  name: String!
3164
3200
  placeholder: String
3165
3201
  property: Object
3202
+ styles: Object
3166
3203
  type: String!
3167
3204
  }
3168
3205
 
@@ -3309,6 +3346,9 @@ type Query {
3309
3346
  """To fetch domains with given privilege for user"""
3310
3347
  domainsWithPrivilege(category: String!, privilege: String!): [Domain!]!
3311
3348
 
3349
+ """To fetch multiple appliance"""
3350
+ edges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplianceList!
3351
+
3312
3352
  """To fetch a Employee"""
3313
3353
  employee(id: String!): Employee
3314
3354
 
@@ -3415,6 +3455,9 @@ type Query {
3415
3455
  myFavorites: [Favorite!]!
3416
3456
  myLoginHistories(limit: Float!): [LoginHistory!]!
3417
3457
 
3458
+ """To fetch my own Menus"""
3459
+ myMenus(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): MenuList!
3460
+
3418
3461
  """To fetch my notifications"""
3419
3462
  myNotifications(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): NotificationList!
3420
3463
 
@@ -3569,7 +3612,7 @@ type Role {
3569
3612
  description: String
3570
3613
  domain: Domain!
3571
3614
  id: ID!
3572
- name: String!
3615
+ name: String
3573
3616
  privileges: [Privilege!]
3574
3617
  updatedAt: DateTimeISO
3575
3618
  updater: User
@@ -3605,7 +3648,7 @@ type Scenario {
3605
3648
  createdAt: DateTimeISO
3606
3649
  creator: User
3607
3650
  description: String
3608
- domain: Domain
3651
+ domain: Domain!
3609
3652
  id: ID!
3610
3653
  instances: [ScenarioInstance!]
3611
3654
  name: String!
@@ -3619,6 +3662,7 @@ type Scenario {
3619
3662
  state: String
3620
3663
  steps: [Step!]
3621
3664
  timezone: String
3665
+ ttl: Float
3622
3666
  type: String
3623
3667
  updatedAt: DateTimeISO
3624
3668
  updater: User
@@ -3651,6 +3695,17 @@ type ScenarioInstanceProgress {
3651
3695
  steps: Int!
3652
3696
  }
3653
3697
 
3698
+ type ScenarioInstanceRunResult {
3699
+ data: Object
3700
+ instanceName: String
3701
+ message: String
3702
+ result: Object
3703
+ scenarioName: String
3704
+ state: String
3705
+ timestamp: DateTimeISO
3706
+ variables: Object
3707
+ }
3708
+
3654
3709
  type ScenarioInstanceState {
3655
3710
  data: Object
3656
3711
  domain: Domain
@@ -3687,6 +3742,7 @@ input ScenarioPatch {
3687
3742
  schedule: String
3688
3743
  steps: [StepPatch!]
3689
3744
  timezone: String
3745
+ ttl: Float
3690
3746
  type: String
3691
3747
  }
3692
3748
 
@@ -3701,7 +3757,7 @@ type Setting {
3701
3757
  createdAt: DateTimeISO
3702
3758
  creator: User
3703
3759
  description: String
3704
- domain: Domain
3760
+ domain: Domain!
3705
3761
  id: ID!
3706
3762
  name: String!
3707
3763
  updatedAt: DateTimeISO
@@ -3735,36 +3791,113 @@ input Sorting {
3735
3791
 
3736
3792
  """Entity for StateRegister"""
3737
3793
  type StateRegister {
3794
+ """Creation time of the state register"""
3738
3795
  createdAt: DateTimeISO
3796
+
3797
+ """User who created the state register"""
3739
3798
  creator: User
3799
+
3800
+ """ID of the user who created the state register"""
3801
+ creatorId: String
3802
+
3803
+ """Description of the state register"""
3740
3804
  description: String
3741
- domain: Domain
3805
+
3806
+ """Associated domain for the state register"""
3807
+ domain: Domain!
3808
+
3809
+ """ID of the associated domain"""
3810
+ domainId: String!
3811
+
3812
+ """Group name for the state register"""
3813
+ group: String
3742
3814
  id: ID!
3815
+
3816
+ """Name of the state register"""
3743
3817
  name: String
3818
+
3819
+ """Number of decimal places if the state is a number type"""
3820
+ place: String
3821
+
3822
+ """
3823
+ Reference to an external entity or data, used as a flexible foreign key
3824
+ """
3744
3825
  refBy: String
3826
+
3827
+ """Current state value"""
3745
3828
  state: Object
3829
+
3830
+ """Time to live for the state value in seconds"""
3746
3831
  ttl: Int
3832
+
3833
+ """Type of the state"""
3747
3834
  type: String
3835
+
3836
+ """Unit of the state value"""
3837
+ unit: String
3838
+
3839
+ """Last update time of the state register"""
3748
3840
  updatedAt: DateTimeISO
3841
+
3842
+ """User who last updated the state register"""
3749
3843
  updater: User
3844
+
3845
+ """ID of the user who last updated the state register"""
3846
+ updaterId: String
3847
+
3848
+ """User who wrote the state"""
3750
3849
  writer: User
3850
+
3851
+ """ID of the user who wrote the state"""
3852
+ writerId: String
3853
+
3854
+ """Time when the state was recorded"""
3751
3855
  wroteAt: DateTimeISO
3752
3856
  }
3753
3857
 
3754
3858
  type StateRegisterList {
3859
+ """List of state registers"""
3755
3860
  items: [StateRegister!]!
3861
+
3862
+ """Total number of state registers"""
3756
3863
  total: Int!
3757
3864
  }
3758
3865
 
3759
3866
  input StateRegisterPatch {
3867
+ """Flag indicating create/update operations"""
3760
3868
  cuFlag: String
3869
+
3870
+ """Description of the state register"""
3761
3871
  description: String
3872
+
3873
+ """Group name for the state register"""
3874
+ group: String
3875
+
3876
+ """ID of the state register"""
3762
3877
  id: ID
3878
+
3879
+ """Name of the state register"""
3763
3880
  name: String
3881
+
3882
+ """Number of decimal places if the state is a number type"""
3883
+ place: String
3884
+
3885
+ """
3886
+ Reference to an external entity or data, used as a flexible foreign key
3887
+ """
3764
3888
  refBy: String
3889
+
3890
+ """Current state value"""
3765
3891
  state: Object
3892
+
3893
+ """Time to live for the state value in seconds"""
3766
3894
  ttl: Int
3895
+
3896
+ """Type of the state"""
3767
3897
  type: String
3898
+
3899
+ """Unit of the state value"""
3900
+ unit: String
3768
3901
  }
3769
3902
 
3770
3903
  type Step {
@@ -3838,6 +3971,7 @@ type TaskTypeList {
3838
3971
  type Terminology {
3839
3972
  category: String!
3840
3973
  createdAt: DateTimeISO
3974
+ creator: User
3841
3975
  description: String
3842
3976
  display: String!
3843
3977
  domain: Domain!
@@ -3845,6 +3979,7 @@ type Terminology {
3845
3979
  locale: String!
3846
3980
  name: String!
3847
3981
  updatedAt: DateTimeISO
3982
+ updater: User
3848
3983
  }
3849
3984
 
3850
3985
  type TerminologyList {
@@ -3853,12 +3988,12 @@ type TerminologyList {
3853
3988
  }
3854
3989
 
3855
3990
  input TerminologyPatch {
3856
- category: String!
3991
+ category: String
3857
3992
  cuFlag: String
3858
3993
  description: String
3859
- display: String!
3994
+ display: String
3860
3995
  id: ID
3861
- locale: String!
3996
+ locale: String
3862
3997
  name: String
3863
3998
  }
3864
3999
 
@@ -3869,7 +4004,7 @@ type Theme {
3869
4004
  creator: User
3870
4005
  deletedAt: DateTimeISO
3871
4006
  description: String
3872
- domain: Domain
4007
+ domain: Domain!
3873
4008
  id: ID!
3874
4009
  name: String
3875
4010
  type: String
@@ -3909,7 +4044,7 @@ type User {
3909
4044
  email: EmailAddress!
3910
4045
  id: ID!
3911
4046
  locale: String
3912
- name: String!
4047
+ name: String
3913
4048
  owner: Boolean
3914
4049
  reference: String
3915
4050
  roles: [Role!]!
@@ -3950,7 +4085,7 @@ type UserRole {
3950
4085
  type UsersAuthProviders {
3951
4086
  authProvider: AuthProvider
3952
4087
  createdAt: DateTimeISO
3953
- domain: Domain
4088
+ domain: Domain!
3954
4089
  id: ID!
3955
4090
  ssoId: String
3956
4091
  updatedAt: DateTimeISO
@@ -326,6 +326,10 @@ function _setSeriesConfigures(series: SceneChart.ChartDataSets, chart: SceneChar
326
326
  var stackGroup = `${type} ${series.yAxisID} ${series.stack || series.dataKey}`
327
327
  var color = series.color ? series.color : series.backgroundColor
328
328
 
329
+ var dataLabelAnchor = series.dataLabelAnchor || 'center'
330
+ var dataLabelOffset = series.dataLabelOffset || 0
331
+ var dataLabelRotation = series.dataLabelRotation || 0
332
+
329
333
  switch (type) {
330
334
  case 'bar':
331
335
  case 'horizontalBar':
@@ -347,6 +351,10 @@ function _setSeriesConfigures(series: SceneChart.ChartDataSets, chart: SceneChar
347
351
  }
348
352
 
349
353
  series.stack = stackGroup
354
+
355
+ series.dataLabelAnchor = dataLabelAnchor
356
+ series.dataLabelOffset = dataLabelOffset
357
+ series.dataLabelRotation = dataLabelRotation
350
358
  }
351
359
 
352
360
  function _appendTickCallback(ticks: SceneChart.TickOptions | undefined) {
@@ -384,7 +392,6 @@ function _setTooltipCallback(tooltips: SceneChart.ChartTooltipOptions) {
384
392
  var value: any = data.datasets?.[tooltipItem.datasetIndex || 0].data?.[tooltipItem.index || 0]
385
393
  var datasetLabel = data.datasets?.[tooltipItem.datasetIndex || 0].label
386
394
  var label = datasetLabel || data.labels?.[tooltipItem.index || 0]
387
- var toNumValue = Number(value)
388
395
 
389
396
  var format = data.datasets?.[tooltipItem.datasetIndex || 0].valueFormat || ''
390
397
  var prefix = data.datasets?.[tooltipItem.datasetIndex || 0].valuePrefix || ''
package/src/ox-chart.ts CHANGED
@@ -122,6 +122,20 @@ export class OxChart extends LitElement {
122
122
  //@ts-ignore
123
123
  return context.dataset.dataLabelAnchor || 'center'
124
124
  },
125
+ offset: function (context) {
126
+ //@ts-ignore
127
+ return context.dataset.dataLabelOffset || 0
128
+ },
129
+ //@ts-ignore
130
+ align: function (context) {
131
+ //@ts-ignore
132
+ return context.dataset.dataLabelAnchor || 'center'
133
+ },
134
+ //@ts-ignore
135
+ rotation: function (context) {
136
+ //@ts-ignore
137
+ return context.dataset.dataLabelRotation || 0
138
+ },
125
139
  color: function (context) {
126
140
  //@ts-ignore
127
141
  return context.dataset?.defaultFontColor || '#000'