@@ -794,7 +794,7 @@ class Label(Mark):
794
794
text: string (default: '')
795
795
text to be displayed
796
796
font_size: string (default: '14px')
797
- front size in px, em or ex
797
+ font size in px, em or ex
798
798
font_weight: {'bold', 'normal', 'bolder'}
799
799
font weight of the caption
800
800
align: {'start', 'middle', 'end'}
@@ -925,6 +925,14 @@ class Pie(Mark):
925
925
start angle of the pie (from top), in degrees
926
926
end_angle: Float (default: 360.0)
927
927
end angle of the pie (from top), in degrees
928
+ display_labels: bool (default: True)
929
+ display the labels on the pie
930
+ label_color: Color or None (default: None)
931
+ color of the labels
932
+ font_size: string (default: '14px')
933
+ label font size in px, em or ex
934
+ font_weight: {'bold', 'normal', 'bolder'} (default: 'normal')
935
+ label font weight
928
936
929
937
Data Attributes
930
938
@@ -967,6 +975,11 @@ class Pie(Mark):
967
975
inner_radius = Float (0.1 , min = 0.0 , max = float ('inf' )).tag (sync = True )
968
976
start_angle = Float ().tag (sync = True )
969
977
end_angle = Float (360.0 ).tag (sync = True )
978
+ display_labels = Bool (True ).tag (sync = True )
979
+ label_color = Color (None , allow_none = True ).tag (sync = True )
980
+ font_size = Unicode (default_value = '10px' ).tag (sync = True )
981
+ font_weight = Enum (['bold' , 'normal' , 'bolder' ],
982
+ default_value = 'normal' ).tag (sync = True )
970
983
971
984
_view_name = Unicode ('Pie' ).tag (sync = True )
972
985
_model_name = Unicode ('PieModel' ).tag (sync = True )
0 commit comments