-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathwaterfall_gen.go
1168 lines (985 loc) · 48.7 KB
/
waterfall_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package grob
// Code generated by go-plotly/generator. DO NOT EDIT.
import (
"encoding/json"
"github.com/MetalBlueberry/go-plotly/pkg/types"
)
var TraceTypeWaterfall types.TraceType = "waterfall"
func (t *Waterfall) GetType() types.TraceType {
return TraceTypeWaterfall
}
func (t *Waterfall) MarshalJSON() ([]byte, error) {
// Define the custom JSON structure including the "type" field
type Alias Waterfall
return json.Marshal(&struct {
Type types.TraceType `json:"type"`
*Alias
}{
Type: t.GetType(), // Add your desired default value here
Alias: (*Alias)(t), // Embed the original struct fields
})
}
// Waterfall Draws waterfall trace which is useful graph to displays the contribution of various elements (either positive or negative) in a bar chart. The data visualized by the span of the bars is set in `y` if `orientation` is set th *v* (the default) and the labels are set in `x`. By setting `orientation` to *h*, the roles are interchanged.
type Waterfall struct {
// Alignmentgroup
// arrayOK: false
// type: string
// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
// .schema.traces.waterfall.attributes.alignmentgroup
Alignmentgroup types.StringType `json:"alignmentgroup,omitempty"`
// Base
// arrayOK: false
// type: number
// Sets where the bar base is drawn (in position axis units).
// .schema.traces.waterfall.attributes.base
Base types.NumberType `json:"base,omitempty"`
// Cliponaxis
// arrayOK: false
// type: boolean
// Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.
// .schema.traces.waterfall.attributes.cliponaxis
Cliponaxis types.BoolType `json:"cliponaxis,omitempty"`
// Connector
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.connector
Connector *WaterfallConnector `json:"connector,omitempty"`
// Constraintext
// arrayOK: false
// default: both
// type: enumerated
// Constrain the size of text inside or outside a bar to be no larger than the bar itself.
// .schema.traces.waterfall.attributes.constraintext
Constraintext WaterfallConstraintext `json:"constraintext,omitempty"`
// Customdata
// arrayOK: false
// type: data_array
// Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.waterfall.attributes.customdata
Customdata *types.DataArrayType `json:"customdata,omitempty"`
// Customdatasrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `customdata`.
// .schema.traces.waterfall.attributes.customdatasrc
Customdatasrc types.StringType `json:"customdatasrc,omitempty"`
// Decreasing
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.decreasing
Decreasing *WaterfallDecreasing `json:"decreasing,omitempty"`
// Dx
// arrayOK: false
// type: number
// Sets the x coordinate step. See `x0` for more info.
// .schema.traces.waterfall.attributes.dx
Dx types.NumberType `json:"dx,omitempty"`
// Dy
// arrayOK: false
// type: number
// Sets the y coordinate step. See `y0` for more info.
// .schema.traces.waterfall.attributes.dy
Dy types.NumberType `json:"dy,omitempty"`
// Hoverinfo
// arrayOK: true
// default: all
// type: flaglist
// Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.
// .schema.traces.waterfall.attributes.hoverinfo
Hoverinfo *types.ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"`
// Hoverinfosrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `hoverinfo`.
// .schema.traces.waterfall.attributes.hoverinfosrc
Hoverinfosrc types.StringType `json:"hoverinfosrc,omitempty"`
// Hoverlabel
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.hoverlabel
Hoverlabel *WaterfallHoverlabel `json:"hoverlabel,omitempty"`
// Hovertemplate
// arrayOK: true
// type: string
// Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta` and `final`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`.
// .schema.traces.waterfall.attributes.hovertemplate
Hovertemplate *types.ArrayOK[*types.StringType] `json:"hovertemplate,omitempty"`
// Hovertemplatesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `hovertemplate`.
// .schema.traces.waterfall.attributes.hovertemplatesrc
Hovertemplatesrc types.StringType `json:"hovertemplatesrc,omitempty"`
// Hovertext
// arrayOK: true
// type: string
// Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag.
// .schema.traces.waterfall.attributes.hovertext
Hovertext *types.ArrayOK[*types.StringType] `json:"hovertext,omitempty"`
// Hovertextsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `hovertext`.
// .schema.traces.waterfall.attributes.hovertextsrc
Hovertextsrc types.StringType `json:"hovertextsrc,omitempty"`
// Ids
// arrayOK: false
// type: data_array
// Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.waterfall.attributes.ids
Ids *types.DataArrayType `json:"ids,omitempty"`
// Idssrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `ids`.
// .schema.traces.waterfall.attributes.idssrc
Idssrc types.StringType `json:"idssrc,omitempty"`
// Increasing
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.increasing
Increasing *WaterfallIncreasing `json:"increasing,omitempty"`
// Insidetextanchor
// arrayOK: false
// default: end
// type: enumerated
// Determines if texts are kept at center or start/end points in `textposition` *inside* mode.
// .schema.traces.waterfall.attributes.insidetextanchor
Insidetextanchor WaterfallInsidetextanchor `json:"insidetextanchor,omitempty"`
// Insidetextfont
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.insidetextfont
Insidetextfont *WaterfallInsidetextfont `json:"insidetextfont,omitempty"`
// Legendgroup
// arrayOK: false
// type: string
// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items.
// .schema.traces.waterfall.attributes.legendgroup
Legendgroup types.StringType `json:"legendgroup,omitempty"`
// Legendgrouptitle
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.legendgrouptitle
Legendgrouptitle *WaterfallLegendgrouptitle `json:"legendgrouptitle,omitempty"`
// Legendrank
// arrayOK: false
// type: number
// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
// .schema.traces.waterfall.attributes.legendrank
Legendrank types.NumberType `json:"legendrank,omitempty"`
// Legendwidth
// arrayOK: false
// type: number
// Sets the width (in px or fraction) of the legend for this trace.
// .schema.traces.waterfall.attributes.legendwidth
Legendwidth types.NumberType `json:"legendwidth,omitempty"`
// Measure
// arrayOK: false
// type: data_array
// An array containing types of values. By default the values are considered as 'relative'. However; it is possible to use 'total' to compute the sums. Also 'absolute' could be applied to reset the computed total or to declare an initial value where needed.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.waterfall.attributes.measure
Measure *types.DataArrayType `json:"measure,omitempty"`
// Measuresrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `measure`.
// .schema.traces.waterfall.attributes.measuresrc
Measuresrc types.StringType `json:"measuresrc,omitempty"`
// Meta
// arrayOK: true
// type: any
// Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index.
// .schema.traces.waterfall.attributes.meta
Meta *types.ArrayOK[*interface{}] `json:"meta,omitempty"`
// Metasrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `meta`.
// .schema.traces.waterfall.attributes.metasrc
Metasrc types.StringType `json:"metasrc,omitempty"`
// Name
// arrayOK: false
// type: string
// Sets the trace name. The trace name appear as the legend item and on hover.
// .schema.traces.waterfall.attributes.name
Name types.StringType `json:"name,omitempty"`
// Offset
// arrayOK: true
// type: number
// Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.
// .schema.traces.waterfall.attributes.offset
Offset *types.ArrayOK[*types.NumberType] `json:"offset,omitempty"`
// Offsetgroup
// arrayOK: false
// type: string
// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
// .schema.traces.waterfall.attributes.offsetgroup
Offsetgroup types.StringType `json:"offsetgroup,omitempty"`
// Offsetsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `offset`.
// .schema.traces.waterfall.attributes.offsetsrc
Offsetsrc types.StringType `json:"offsetsrc,omitempty"`
// Opacity
// arrayOK: false
// type: number
// Sets the opacity of the trace.
// .schema.traces.waterfall.attributes.opacity
Opacity types.NumberType `json:"opacity,omitempty"`
// Orientation
// arrayOK: false
// default: %!s(<nil>)
// type: enumerated
// Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal).
// .schema.traces.waterfall.attributes.orientation
Orientation WaterfallOrientation `json:"orientation,omitempty"`
// Outsidetextfont
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.outsidetextfont
Outsidetextfont *WaterfallOutsidetextfont `json:"outsidetextfont,omitempty"`
// Selectedpoints
// arrayOK: false
// type: any
// Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the `selected` and `unselected` styles have no effect.
// .schema.traces.waterfall.attributes.selectedpoints
Selectedpoints interface{} `json:"selectedpoints,omitempty"`
// Showlegend
// arrayOK: false
// type: boolean
// Determines whether or not an item corresponding to this trace is shown in the legend.
// .schema.traces.waterfall.attributes.showlegend
Showlegend types.BoolType `json:"showlegend,omitempty"`
// Stream
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.stream
Stream *WaterfallStream `json:"stream,omitempty"`
// Text
// arrayOK: true
// type: string
// Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels.
// .schema.traces.waterfall.attributes.text
Text *types.ArrayOK[*types.StringType] `json:"text,omitempty"`
// Textangle
// arrayOK: false
// type: angle
// Sets the angle of the tick labels with respect to the bar. For example, a `tickangle` of -90 draws the tick labels vertically. With *auto* the texts may automatically be rotated to fit with the maximum size in bars.
// .schema.traces.waterfall.attributes.textangle
Textangle types.NumberType `json:"textangle,omitempty"`
// Textfont
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.textfont
Textfont *WaterfallTextfont `json:"textfont,omitempty"`
// Textinfo
// arrayOK: false
// default: %!s(<nil>)
// type: flaglist
// Determines which trace information appear on the graph. In the case of having multiple waterfalls, totals are computed separately (per trace).
// .schema.traces.waterfall.attributes.textinfo
Textinfo WaterfallTextinfo `json:"textinfo,omitempty"`
// Textposition
// arrayOK: true
// default: auto
// type: enumerated
// Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears.
// .schema.traces.waterfall.attributes.textposition
Textposition *types.ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"`
// Textpositionsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `textposition`.
// .schema.traces.waterfall.attributes.textpositionsrc
Textpositionsrc types.StringType `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `text`.
// .schema.traces.waterfall.attributes.textsrc
Textsrc types.StringType `json:"textsrc,omitempty"`
// Texttemplate
// arrayOK: true
// type: string
// Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta`, `final` and `label`.
// .schema.traces.waterfall.attributes.texttemplate
Texttemplate *types.ArrayOK[*types.StringType] `json:"texttemplate,omitempty"`
// Texttemplatesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `texttemplate`.
// .schema.traces.waterfall.attributes.texttemplatesrc
Texttemplatesrc types.StringType `json:"texttemplatesrc,omitempty"`
// Totals
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.totals
Totals *WaterfallTotals `json:"totals,omitempty"`
// Transforms
// role: Object
// items: WaterfallTransform
// .schema.traces.waterfall.attributes.transforms
Transforms []WaterfallTransform `json:"transforms,omitempty"`
// Uid
// arrayOK: false
// type: string
// Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
// .schema.traces.waterfall.attributes.uid
Uid types.StringType `json:"uid,omitempty"`
// Uirevision
// arrayOK: false
// type: any
// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.
// .schema.traces.waterfall.attributes.uirevision
Uirevision interface{} `json:"uirevision,omitempty"`
// Visible
// arrayOK: false
// default: %!s(bool=true)
// type: enumerated
// Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
// .schema.traces.waterfall.attributes.visible
Visible WaterfallVisible `json:"visible,omitempty"`
// Width
// arrayOK: true
// type: number
// Sets the bar width (in position axis units).
// .schema.traces.waterfall.attributes.width
Width *types.ArrayOK[*types.NumberType] `json:"width,omitempty"`
// Widthsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `width`.
// .schema.traces.waterfall.attributes.widthsrc
Widthsrc types.StringType `json:"widthsrc,omitempty"`
// X
// arrayOK: false
// type: data_array
// Sets the x coordinates.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.waterfall.attributes.x
X *types.DataArrayType `json:"x,omitempty"`
// X0
// arrayOK: false
// type: any
// Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step.
// .schema.traces.waterfall.attributes.x0
X0 interface{} `json:"x0,omitempty"`
// Xaxis
// arrayOK: false
// type: subplotid
// Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If *x* (the default value), the x coordinates refer to `layout.xaxis`. If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.
// .schema.traces.waterfall.attributes.xaxis
Xaxis types.StringType `json:"xaxis,omitempty"`
// Xhoverformat
// arrayOK: false
// type: string
// Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`.
// .schema.traces.waterfall.attributes.xhoverformat
Xhoverformat types.StringType `json:"xhoverformat,omitempty"`
// Xperiod
// arrayOK: false
// type: any
// Only relevant when the axis `type` is *date*. Sets the period positioning in milliseconds or *M<n>* on the x axis. Special values in the form of *M<n>* could be used to declare the number of months. In this case `n` must be a positive integer.
// .schema.traces.waterfall.attributes.xperiod
Xperiod interface{} `json:"xperiod,omitempty"`
// Xperiod0
// arrayOK: false
// type: any
// Only relevant when the axis `type` is *date*. Sets the base for period positioning in milliseconds or date string on the x0 axis. When `x0period` is round number of weeks, the `x0period0` by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.
// .schema.traces.waterfall.attributes.xperiod0
Xperiod0 interface{} `json:"xperiod0,omitempty"`
// Xperiodalignment
// arrayOK: false
// default: middle
// type: enumerated
// Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis.
// .schema.traces.waterfall.attributes.xperiodalignment
Xperiodalignment WaterfallXperiodalignment `json:"xperiodalignment,omitempty"`
// Xsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `x`.
// .schema.traces.waterfall.attributes.xsrc
Xsrc types.StringType `json:"xsrc,omitempty"`
// Y
// arrayOK: false
// type: data_array
// Sets the y coordinates.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.waterfall.attributes.y
Y *types.DataArrayType `json:"y,omitempty"`
// Y0
// arrayOK: false
// type: any
// Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step.
// .schema.traces.waterfall.attributes.y0
Y0 interface{} `json:"y0,omitempty"`
// Yaxis
// arrayOK: false
// type: subplotid
// Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
// .schema.traces.waterfall.attributes.yaxis
Yaxis types.StringType `json:"yaxis,omitempty"`
// Yhoverformat
// arrayOK: false
// type: string
// Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`.
// .schema.traces.waterfall.attributes.yhoverformat
Yhoverformat types.StringType `json:"yhoverformat,omitempty"`
// Yperiod
// arrayOK: false
// type: any
// Only relevant when the axis `type` is *date*. Sets the period positioning in milliseconds or *M<n>* on the y axis. Special values in the form of *M<n>* could be used to declare the number of months. In this case `n` must be a positive integer.
// .schema.traces.waterfall.attributes.yperiod
Yperiod interface{} `json:"yperiod,omitempty"`
// Yperiod0
// arrayOK: false
// type: any
// Only relevant when the axis `type` is *date*. Sets the base for period positioning in milliseconds or date string on the y0 axis. When `y0period` is round number of weeks, the `y0period0` by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.
// .schema.traces.waterfall.attributes.yperiod0
Yperiod0 interface{} `json:"yperiod0,omitempty"`
// Yperiodalignment
// arrayOK: false
// default: middle
// type: enumerated
// Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis.
// .schema.traces.waterfall.attributes.yperiodalignment
Yperiodalignment WaterfallYperiodalignment `json:"yperiodalignment,omitempty"`
// Ysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `y`.
// .schema.traces.waterfall.attributes.ysrc
Ysrc types.StringType `json:"ysrc,omitempty"`
}
// WaterfallConnectorLine
type WaterfallConnectorLine struct {
// Color
// arrayOK: false
// type: color
// Sets the line color.
// .schema.traces.waterfall.attributes.connector.line.color
Color types.Color `json:"color,omitempty"`
// Dash
// arrayOK: false
// type: string
// Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).
// .schema.traces.waterfall.attributes.connector.line.dash
Dash types.StringType `json:"dash,omitempty"`
// Width
// arrayOK: false
// type: number
// Sets the line width (in px).
// .schema.traces.waterfall.attributes.connector.line.width
Width types.NumberType `json:"width,omitempty"`
}
// WaterfallConnector
type WaterfallConnector struct {
// Line
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.connector.line
Line *WaterfallConnectorLine `json:"line,omitempty"`
// Mode
// arrayOK: false
// default: between
// type: enumerated
// Sets the shape of connector lines.
// .schema.traces.waterfall.attributes.connector.mode
Mode WaterfallConnectorMode `json:"mode,omitempty"`
// Visible
// arrayOK: false
// type: boolean
// Determines if connector lines are drawn.
// .schema.traces.waterfall.attributes.connector.visible
Visible types.BoolType `json:"visible,omitempty"`
}
// WaterfallDecreasingMarkerLine
type WaterfallDecreasingMarkerLine struct {
// Color
// arrayOK: false
// type: color
// Sets the line color of all decreasing values.
// .schema.traces.waterfall.attributes.decreasing.marker.line.color
Color types.Color `json:"color,omitempty"`
// Width
// arrayOK: false
// type: number
// Sets the line width of all decreasing values.
// .schema.traces.waterfall.attributes.decreasing.marker.line.width
Width types.NumberType `json:"width,omitempty"`
}
// WaterfallDecreasingMarker
type WaterfallDecreasingMarker struct {
// Color
// arrayOK: false
// type: color
// Sets the marker color of all decreasing values.
// .schema.traces.waterfall.attributes.decreasing.marker.color
Color types.Color `json:"color,omitempty"`
// Line
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.decreasing.marker.line
Line *WaterfallDecreasingMarkerLine `json:"line,omitempty"`
}
// WaterfallDecreasing
type WaterfallDecreasing struct {
// Marker
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.decreasing.marker
Marker *WaterfallDecreasingMarker `json:"marker,omitempty"`
}
// WaterfallHoverlabelFont Sets the font used in hover labels.
type WaterfallHoverlabelFont struct {
// Color
// arrayOK: true
// type: color
//
// .schema.traces.waterfall.attributes.hoverlabel.font.color
Color *types.ArrayOK[*types.Color] `json:"color,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `color`.
// .schema.traces.waterfall.attributes.hoverlabel.font.colorsrc
Colorsrc types.StringType `json:"colorsrc,omitempty"`
// Family
// arrayOK: true
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.waterfall.attributes.hoverlabel.font.family
Family *types.ArrayOK[*types.StringType] `json:"family,omitempty"`
// Familysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `family`.
// .schema.traces.waterfall.attributes.hoverlabel.font.familysrc
Familysrc types.StringType `json:"familysrc,omitempty"`
// Size
// arrayOK: true
// type: number
//
// .schema.traces.waterfall.attributes.hoverlabel.font.size
Size *types.ArrayOK[*types.NumberType] `json:"size,omitempty"`
// Sizesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `size`.
// .schema.traces.waterfall.attributes.hoverlabel.font.sizesrc
Sizesrc types.StringType `json:"sizesrc,omitempty"`
}
// WaterfallHoverlabel
type WaterfallHoverlabel struct {
// Align
// arrayOK: true
// default: auto
// type: enumerated
// Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
// .schema.traces.waterfall.attributes.hoverlabel.align
Align *types.ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"`
// Alignsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `align`.
// .schema.traces.waterfall.attributes.hoverlabel.alignsrc
Alignsrc types.StringType `json:"alignsrc,omitempty"`
// Bgcolor
// arrayOK: true
// type: color
// Sets the background color of the hover labels for this trace
// .schema.traces.waterfall.attributes.hoverlabel.bgcolor
Bgcolor *types.ArrayOK[*types.Color] `json:"bgcolor,omitempty"`
// Bgcolorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `bgcolor`.
// .schema.traces.waterfall.attributes.hoverlabel.bgcolorsrc
Bgcolorsrc types.StringType `json:"bgcolorsrc,omitempty"`
// Bordercolor
// arrayOK: true
// type: color
// Sets the border color of the hover labels for this trace.
// .schema.traces.waterfall.attributes.hoverlabel.bordercolor
Bordercolor *types.ArrayOK[*types.Color] `json:"bordercolor,omitempty"`
// Bordercolorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `bordercolor`.
// .schema.traces.waterfall.attributes.hoverlabel.bordercolorsrc
Bordercolorsrc types.StringType `json:"bordercolorsrc,omitempty"`
// Font
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.hoverlabel.font
Font *WaterfallHoverlabelFont `json:"font,omitempty"`
// Namelength
// arrayOK: true
// type: integer
// Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.
// .schema.traces.waterfall.attributes.hoverlabel.namelength
Namelength *types.ArrayOK[*types.IntegerType] `json:"namelength,omitempty"`
// Namelengthsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `namelength`.
// .schema.traces.waterfall.attributes.hoverlabel.namelengthsrc
Namelengthsrc types.StringType `json:"namelengthsrc,omitempty"`
}
// WaterfallIncreasingMarkerLine
type WaterfallIncreasingMarkerLine struct {
// Color
// arrayOK: false
// type: color
// Sets the line color of all increasing values.
// .schema.traces.waterfall.attributes.increasing.marker.line.color
Color types.Color `json:"color,omitempty"`
// Width
// arrayOK: false
// type: number
// Sets the line width of all increasing values.
// .schema.traces.waterfall.attributes.increasing.marker.line.width
Width types.NumberType `json:"width,omitempty"`
}
// WaterfallIncreasingMarker
type WaterfallIncreasingMarker struct {
// Color
// arrayOK: false
// type: color
// Sets the marker color of all increasing values.
// .schema.traces.waterfall.attributes.increasing.marker.color
Color types.Color `json:"color,omitempty"`
// Line
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.increasing.marker.line
Line *WaterfallIncreasingMarkerLine `json:"line,omitempty"`
}
// WaterfallIncreasing
type WaterfallIncreasing struct {
// Marker
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.increasing.marker
Marker *WaterfallIncreasingMarker `json:"marker,omitempty"`
}
// WaterfallInsidetextfont Sets the font used for `text` lying inside the bar.
type WaterfallInsidetextfont struct {
// Color
// arrayOK: true
// type: color
//
// .schema.traces.waterfall.attributes.insidetextfont.color
Color *types.ArrayOK[*types.Color] `json:"color,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `color`.
// .schema.traces.waterfall.attributes.insidetextfont.colorsrc
Colorsrc types.StringType `json:"colorsrc,omitempty"`
// Family
// arrayOK: true
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.waterfall.attributes.insidetextfont.family
Family *types.ArrayOK[*types.StringType] `json:"family,omitempty"`
// Familysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `family`.
// .schema.traces.waterfall.attributes.insidetextfont.familysrc
Familysrc types.StringType `json:"familysrc,omitempty"`
// Size
// arrayOK: true
// type: number
//
// .schema.traces.waterfall.attributes.insidetextfont.size
Size *types.ArrayOK[*types.NumberType] `json:"size,omitempty"`
// Sizesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `size`.
// .schema.traces.waterfall.attributes.insidetextfont.sizesrc
Sizesrc types.StringType `json:"sizesrc,omitempty"`
}
// WaterfallLegendgrouptitleFont Sets this legend group's title font.
type WaterfallLegendgrouptitleFont struct {
// Color
// arrayOK: false
// type: color
//
// .schema.traces.waterfall.attributes.legendgrouptitle.font.color
Color types.Color `json:"color,omitempty"`
// Family
// arrayOK: false
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.waterfall.attributes.legendgrouptitle.font.family
Family types.StringType `json:"family,omitempty"`
// Size
// arrayOK: false
// type: number
//
// .schema.traces.waterfall.attributes.legendgrouptitle.font.size
Size types.NumberType `json:"size,omitempty"`
}
// WaterfallLegendgrouptitle
type WaterfallLegendgrouptitle struct {
// Font
// arrayOK: false
// role: Object
// .schema.traces.waterfall.attributes.legendgrouptitle.font
Font *WaterfallLegendgrouptitleFont `json:"font,omitempty"`
// Text
// arrayOK: false
// type: string
// Sets the title of the legend group.
// .schema.traces.waterfall.attributes.legendgrouptitle.text
Text types.StringType `json:"text,omitempty"`
}
// WaterfallOutsidetextfont Sets the font used for `text` lying outside the bar.
type WaterfallOutsidetextfont struct {
// Color
// arrayOK: true
// type: color
//
// .schema.traces.waterfall.attributes.outsidetextfont.color
Color *types.ArrayOK[*types.Color] `json:"color,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `color`.
// .schema.traces.waterfall.attributes.outsidetextfont.colorsrc
Colorsrc types.StringType `json:"colorsrc,omitempty"`
// Family
// arrayOK: true
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.waterfall.attributes.outsidetextfont.family
Family *types.ArrayOK[*types.StringType] `json:"family,omitempty"`
// Familysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `family`.
// .schema.traces.waterfall.attributes.outsidetextfont.familysrc
Familysrc types.StringType `json:"familysrc,omitempty"`
// Size
// arrayOK: true
// type: number
//
// .schema.traces.waterfall.attributes.outsidetextfont.size
Size *types.ArrayOK[*types.NumberType] `json:"size,omitempty"`
// Sizesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `size`.
// .schema.traces.waterfall.attributes.outsidetextfont.sizesrc
Sizesrc types.StringType `json:"sizesrc,omitempty"`
}
// WaterfallStream
type WaterfallStream struct {
// Maxpoints
// arrayOK: false
// type: number
// Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot.
// .schema.traces.waterfall.attributes.stream.maxpoints
Maxpoints types.NumberType `json:"maxpoints,omitempty"`
// Token
// arrayOK: false
// type: string
// The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
// .schema.traces.waterfall.attributes.stream.token
Token types.StringType `json:"token,omitempty"`
}
// WaterfallTextfont Sets the font used for `text`.
type WaterfallTextfont struct {
// Color
// arrayOK: true
// type: color
//
// .schema.traces.waterfall.attributes.textfont.color
Color *types.ArrayOK[*types.Color] `json:"color,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `color`.
// .schema.traces.waterfall.attributes.textfont.colorsrc
Colorsrc types.StringType `json:"colorsrc,omitempty"`
// Family
// arrayOK: true
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.waterfall.attributes.textfont.family
Family *types.ArrayOK[*types.StringType] `json:"family,omitempty"`
// Familysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `family`.
// .schema.traces.waterfall.attributes.textfont.familysrc
Familysrc types.StringType `json:"familysrc,omitempty"`
// Size
// arrayOK: true
// type: number
//
// .schema.traces.waterfall.attributes.textfont.size
Size *types.ArrayOK[*types.NumberType] `json:"size,omitempty"`
// Sizesrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `size`.
// .schema.traces.waterfall.attributes.textfont.sizesrc
Sizesrc types.StringType `json:"sizesrc,omitempty"`
}
// WaterfallTotalsMarkerLine
type WaterfallTotalsMarkerLine struct {
// Color
// arrayOK: false
// type: color