@@ -39,37 +39,46 @@ public static Figure create(
39
39
}
40
40
return new Figure (layout , traces );
41
41
}
42
-
43
- public static Figure create (String title , Table table , String xCol , Column xColumn , String yCol , Column yColumn ,
44
- String sizeColumn , double [] color , SizeMode sizeMode , Double opacity ) {
45
- Layout layout = Layout .builder (title , xCol , yCol ).build ();
46
42
47
- Marker marker = null ;
48
- MarkerBuilder builder = Marker .builder ();
49
- if (sizeColumn != null ) {
50
- builder .size (table .numberColumn (sizeColumn ));
51
- }
52
- if (opacity != null ) {
53
- builder .opacity (opacity );
54
- }
55
- if (color != null ) {
56
- builder .color (color );
57
- }
58
- if (sizeMode != null ) {
59
- builder .sizeMode (sizeMode );
60
- }
61
- marker = builder .build ();
43
+ public static Figure create (
44
+ String title ,
45
+ Table table ,
46
+ String xCol ,
47
+ Column xColumn ,
48
+ String yCol ,
49
+ Column yColumn ,
50
+ String sizeColumn ,
51
+ double [] color ,
52
+ SizeMode sizeMode ,
53
+ Double opacity ) {
54
+ Layout layout = Layout .builder (title , xCol , yCol ).build ();
55
+
56
+ Marker marker = null ;
57
+ MarkerBuilder builder = Marker .builder ();
58
+ if (sizeColumn != null ) {
59
+ builder .size (table .numberColumn (sizeColumn ));
60
+ }
61
+ if (opacity != null ) {
62
+ builder .opacity (opacity );
63
+ }
64
+ if (color != null ) {
65
+ builder .color (color );
66
+ }
67
+ if (sizeMode != null ) {
68
+ builder .sizeMode (sizeMode );
69
+ }
70
+ marker = builder .build ();
62
71
63
- xColumn = (xColumn == null ) ? table .numberColumn (xCol ) : xColumn ;
64
- yColumn = (yColumn == null ) ? table .numberColumn (yCol ) : yColumn ;
72
+ xColumn = (xColumn == null ) ? table .numberColumn (xCol ) : xColumn ;
73
+ yColumn = (yColumn == null ) ? table .numberColumn (yCol ) : yColumn ;
65
74
66
- ScatterTrace trace = ScatterTrace .builder (xColumn , yColumn ).marker (marker ).build ();
67
- return new Figure (layout , trace );
68
- }
75
+ ScatterTrace trace = ScatterTrace .builder (xColumn , yColumn ).marker (marker ).build ();
76
+ return new Figure (layout , trace );
77
+ }
69
78
70
79
public static Figure create (
71
80
String title , Table table , String xCol , String yCol , String sizeColumn ) {
72
- return create (title , table , xCol , null , yCol , null , sizeColumn , null , null , null );
81
+ return create (title , table , xCol , null , yCol , null , sizeColumn , null , null , null );
73
82
}
74
83
75
84
public static Figure create (
0 commit comments