Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type d3pie_size = {
canvas_height : int;
canvas_width : int;
pie_inner_radius : d3pie_size_radius_value;
pie_outer_radius : d3pie_size_radius_value;
}
type d3pie_small_segment_grouping = {
enabled : bool;
value : int;
value_type : d3pie_small_segment_grouping_type;
label : string;
color : string;
}
type d3pie_data = {
content : d3pie_data_content list;
sort_order : d3pie_sort_order;
small_segment_grouping : d3pie_small_segment_grouping;
}
type d3pie_inner_labels_descriptor = {
format : d3pie_label_format_value;
hide_when_less_than_percentage : int option;
}
type d3pie_outer_labels_descriptor = {
format : d3pie_label_format_value;
hide_when_less_than_percentage : int option;
pie_distance : int;
}
type d3pie_callback_argument = {
segment : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t;
index : int;
expanded : bool;
data : d3pie_callback_argument_data;
color : string;
}
type d3pie_callbacks = {
on_click_segment : d3pie_callback_argument -> unit;
on_mouseover_segment : d3pie_callback_argument -> unit;
on_mouseout_segment : d3pie_callback_argument -> unit;
}
type d3pie_settings = {
data : d3pie_data;
header : d3pie_header;
size : d3pie_size;
labels : d3pie_labels;
effects : d3pie_effects;
tooltips : d3pie_tooltips;
misc : d3pie_misc;
callbacks : d3pie_callbacks;
}
val default_settings : d3pie_settings
val set_data_content :
d3pie_data_content list ->
d3pie_settings ->
d3pie_settings
val set_data_sort_order : d3pie_sort_order -> d3pie_settings -> d3pie_settings
val set_size_canvas_height : int -> d3pie_settings -> d3pie_settings
val set_size_canvas_width : int -> d3pie_settings -> d3pie_settings
val set_size_pie_inner_radius :
d3pie_size_radius_value ->
d3pie_settings ->
d3pie_settings
val set_size_pie_outer_radius :
d3pie_size_radius_value ->
d3pie_settings ->
d3pie_settings
val set_inner_label_format :
d3pie_label_format_value ->
d3pie_settings ->
d3pie_settings
val set_outer_label_format :
d3pie_label_format_value ->
d3pie_settings ->
d3pie_settings
val set_load_effect : d3pie_load_effect -> d3pie_settings -> d3pie_settings
val set_segment_on_click_effect :
d3pie_segment_on_click_effect ->
d3pie_settings ->
d3pie_settings
val set_on_click_callback :
(d3pie_callback_argument -> unit) ->
d3pie_settings ->
d3pie_settings
val set_on_mouseover_callback :
(d3pie_callback_argument -> unit) ->
d3pie_settings ->
d3pie_settings
val set_on_mouseout_callback :
(d3pie_callback_argument -> unit) ->
d3pie_settings ->
d3pie_settings
val set_small_segment_grouping :
d3pie_small_segment_grouping_type ->
int ->
string ->
string ->
d3pie_settings ->
d3pie_settings
val unset_small_segment_grouping : d3pie_settings -> d3pie_settings
val set_segments_colors : string array -> d3pie_settings -> d3pie_settings
val set_segment_stroke_color : string -> d3pie_settings -> d3pie_settings