SVGGraph options supported by 'DonutGraph'

« Return to SVGGraph page

This page lists all the options currently available for use in the SVGGraph constructor's $settings array. The lists of graph types and tags can be used to filter the list of options, and each option name is a link to a page with further details about the option.

Graph type support: Bar3DGraph BarAndLineGraph BarGraph BoxAndWhiskerGraph BubbleGraph CylinderGraph DonutGraph ExplodedPie3DGraph ExplodedPieGraph FloatingBarGraph GroupedBar3DGraph GroupedBarGraph GroupedCylinderGraph Histogram HorizontalBarGraph HorizontalFloatingBarGraph HorizontalGroupedBarGraph HorizontalStackedBarGraph LineGraph MultiLineGraph MultiRadarGraph MultiScatterGraph Pie3DGraph PieGraph PolarArea3DGraph PolarAreaGraph PopulationPyramid RadarGraph ScatterGraph SemiDonutGraph StackedBar3DGraph StackedBarAndLineGraph StackedBarGraph StackedCylinderGraph StackedGroupedBar3DGraph StackedGroupedBarGraph StackedGroupedCylinderGraph StackedLineGraph

Tags: 3D axis background bar best-fit border bubble callback crosshairs datetime deprecated donut font global grid grouped guideline histogram image javascript label legend line marker padding pie radar scatter stacked structure target title tooltip trend

155 options supported by graph type DonutGraph:

« View full list

Option Default Summary
aspect_ratio 1.0 Ratio of pie graph height to width.
auto_fit false Enables automatic scaling of the SVG document.
back_colour "rgb(240,240,240)" Background colour of graph, or "none" for transparent background.
back_image NULL Image to use for background , or NULL for none.
back_image_height "100%" Height of background image.
back_image_left 0 Left offset of background image.
back_image_mode "auto" Background image display method.
back_image_opacity NULL Opacity of background image (0.0-1.0)
back_image_top 0 Top offset of background image.
back_image_width "100%" Width of background image.
back_round 0 Radius of rounded background edge.
back_round_clip false If true, adds a clip path to the background rectangle to prevent drawing over the rounded corners.
back_stroke_colour "rgb(0,0,0)" Colour of background edge.
back_stroke_width 1 Thickness of background edge.
compat_events false Set to true to fall back to inline event handlers, required by Adobe IE plugin.
data_label_angle 0 Text angle for data labels.
data_label_back_colour NULL Colour of label text border.
data_label_back_colour_outside NULL Alternative label text border colour.
data_label_callback NULL Callback function for data label text.
data_label_click false Enables click-to-show/hide for data labels.
data_label_colour "rgb(0,0,0)" Text colour for data labels.
data_label_colour_outside NULL Alternative text colour for data labels.
data_label_datetime_format "Y-m-d H:i:s" Date format for date/time keys in labels.
data_label_fade_in_speed 0 Fade in speed for data labels.
data_label_fade_out_speed 0 Fade out speed for data labels.
data_label_fill "white" Data label background colour.
data_label_filter NULL Limits the data labels displayed.
data_label_font "sans-serif" Font used for data labels.
data_label_font_adjust 0.6 Font adjust value for label text.
data_label_font_size 10 Font size for data labels.
data_label_font_weight "normal" Font weight for data labels.
data_label_max_count 100 Maximum number of data labels to display.
data_label_min_space 0 Minimum space required for label.
data_label_outline_colour "rgb(0,0,0)" Edge colour for data labels.
data_label_outline_thickness 1 Line thickness for data labels.
data_label_padding 3 Space inside data label boxes.
data_label_padding_x NULL Horizontal space in data label box.
data_label_padding_y NULL Vertical space in data label box.
data_label_popfront false Enables pop-to-front for data labels.
data_label_position "top" Position of data label.
data_label_round 0 Radius of data label corners.
data_label_shadow_opacity 0.3 Opacity of data label shadows.
data_label_space 3 The space between the label and the data item.
data_label_tail_length 3 Length of data label tails.
data_label_tail_width 5 Thickness of data label tails.
data_label_type "plain" The style of label to use.
datetime_key_format NULL This option specifies the date/time format of the data keys, used when the datetime_keys option is enabled. The default value of NULL means that no specific format is in use.
datetime_keys false Parses data keys as date/time values.
decimal "." Decimal point character for axis labels, etc.
description NULL The <desc> content used for the SVG document.
doctype false When enabled, outputs the SVG doctype declaration at the start of the document.
empty_use true Outputs <use ...></use> instead of <use .../> to work around Safari bug.
encoding "UTF-8" Sets the character encoding in the XML declaration and used throughout SVGGraph.
end_angle "none" End angle of pie graphs.
exception_details false When enabled, some extra details about thrown exceptions are displayed.
exception_throw false When enabled, exceptions are not caught by SVGGraph.
force_assoc false Treats data keys as strings instead of numbers.
graph_title "" Title displayed on the graph.
graph_title_colour "black" Colour of graph title text.
graph_title_font "sans-serif" Font for graph title.
graph_title_font_size 12 Font size for graph title.
graph_title_font_weight "normal" Font weight for graph title.
graph_title_position "top" Position of graph title.
graph_title_space 10 Spacing around graph title.
id_prefix "" Inserts a prefix string in front of all generated element ids.
inner_radius 0.5 Inner radius of donut graph.
inner_text NULL Text for centre of donut graph.
inner_text_back_colour NULL Background colour for donut graph centre text.
inner_text_colour NULL Colour of donut graph centre text.
inner_text_font NULL Font for donut graph centre text.
inner_text_font_adjust NULL Font size ratio for donut graph centre text.
inner_text_font_size NULL Font size for donut graph centre text.
inner_text_font_weight NULL Font weight for donut graph centre text.
keep_colour_order false Uses colours in original data order.
label NULL Adds custom labels to the graph.
label_back_colour NULL Pie graph label background colour.
label_fade_in_speed 0 Pie graph label fade in speed.
label_fade_out_speed 0 Pie graph label fade out speed.
label_percent_decimals 2 Decimal places in label percentages.
label_position 0.75 Distance of label from centre.
legend_autohide false Makes the legend hide when the cursor is over it.
legend_back_colour "white" Colour of legend background.
legend_colour "black" Colour of legend entries text.
legend_columns 1 Number of columns in which to display entries.
legend_draggable true Makes the legend draggable with the mouse.
legend_entries NULL Array of entries for the legend.
legend_entry_height 20 Height of legend entry box.
legend_entry_width 20 Width of legend entry box.
legend_font "sans-serif" Font for legend entries.
legend_font_adjust 0.6 Ratio of font width to height.
legend_font_size 10 Font size for legend entries.
legend_font_weight "normal" Font weight for legend entries.
legend_padding 5 Amount of spacing between entries in legend.
legend_position "top right" Position of the legend.
legend_round 0 Radius of rounded corners for legend border.
legend_shadow_opacity 0.3 Darkness of shadow.
legend_show_empty false Set to true to display legend entries for 0 or NULL values.
legend_stroke_colour "black" Colour of legend border.
legend_stroke_width 1 Thickness of legend border.
legend_text_side "right" Side on which to put entry text.
legend_title "" Title for legend.
legend_title_colour NULL Colour of legend title.
legend_title_font NULL Font for legend title.
legend_title_font_adjust NULL Ratio of font width to height.
legend_title_font_size NULL Font size for legend title.
legend_title_font_weight "bold" Font weight for legend title.
legend_type "all" Which data should have legend entries.
link_base "" Prepended to all relative links.
link_target "_blank" The target attribute for every link.
minify true Removes extra whitespace from SVG content.
minify_js NULL Callback function for minifying Javascript code.
namespace false When enabled, adds the svg: namespace prefix to all elements.
pad_bottom 10 Space at bottom of graph.
pad_left 10 Space to left of graph.
pad_right 10 Space to right of graph.
pad_top 10 Space at top of graph.
precision 5 Sets the precision of values output in the SVG content.
reverse false Reverses direction of graph.
semantic_classes false Adds classes to various elements.
shape NULL Adds custom shapes to the graph.
show_data_labels false Displays labels for data items.
show_label_amount false Shows item amount in data label.
show_label_key true Shows item key in data label.
show_label_percent false Shows item percentage in data label.
show_labels true Enables pie graph labels.
show_legend true Enables displaying the legend.
show_tooltips true Enables display of tooltips over bars, pie slices, markers.
slice_fit true Fits partial pie graphs into the available space.
sort true Enables sorting pie graph values.
start_angle 0 Initial direction of graph.
stroke_colour "rgb(0,0,0)" Colour of graph lines.
stroke_dash NULL Dash pattern for graph lines, or NULL to draw solid lines.
stroke_width 1 Thickness of graph lines, 0 to disable drawing the lines.
structure NULL Sets the structure for use with structured data.
structured_data false Enables structured data values support.
svg_class NULL Class name for root SVG element, NULL for none.
thousands "," Thousands separator for axis labels, etc.
title NULL The <title> content used for the SVG document.
tooltip_back_colour "#ffffcc" Tooltip rectangle background colour.
tooltip_callback NULL Callback function for formatting tooltip text.
tooltip_colour "black" Tooltip text/border colour.
tooltip_font "sans-serif" Font for tooltips.
tooltip_font_size 10 Tooltip font size.
tooltip_font_weight "normal" Tooltip font weight.
tooltip_offset 10 Distance between cursor and tooltip.
tooltip_padding 3 Tooltip rectangle padding.
tooltip_round 0 Radius of rounded tooltip corner.
tooltip_shadow_opacity 0.3 Opacity of tooltip shadow.
tooltip_stroke_width 1 Tooltip border thickness.
units_before_label NULL String to display before value in data labels.
units_before_tooltip NULL Units shown before value on tooltip.
units_before_tooltip_key NULL Units shown before key (X value) on tooltip.
units_label NULL String to display after value in data labels.
units_tooltip NULL Units shown after value on tooltip.
units_tooltip_key NULL Units shown after key (X value) on tooltip.

« Back to top of page Main SVGGraph page »