SVGGraph options

« 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 ExplodedPieGraph FloatingBarGraph GroupedBar3DGraph GroupedBarGraph GroupedCylinderGraph Histogram HorizontalBarGraph HorizontalFloatingBarGraph HorizontalGroupedBarGraph HorizontalStackedBarGraph LineGraph MultiLineGraph MultiRadarGraph MultiScatterGraph Pie3DGraph PieGraph PolarAreaGraph PopulationPyramid RadarGraph ScatterGraph StackedBar3DGraph 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

These are all 397 options available:

Option Default Summary
aspect_ratio 1.0 Ratio of pie graph height to width.
auto_fit false Enables automatic scaling of the SVG document.
axis_colour "rgb(0,0,0)" Colour of axis lines and text.
axis_colour_h NULL Colour of horizontal axis.
axis_colour_v NULL Colour of vertical axis.
axis_font "monospace" Font for axis division labels.
axis_font_adjust 0.6 Font aspect ratio of axis division text.
axis_font_adjust_h NULL Font aspect ratio of horizontal axis division text.
axis_font_adjust_v NULL Font aspect ratio of vertical axis division text.
axis_font_h NULL Font for horizontal axis division labels.
axis_font_size 10 Font size for axis division labels.
axis_font_size_h NULL Font size for horizontal axis division labels.
axis_font_size_v NULL Font size for vertical axis division labels.
axis_font_v NULL Font for vertical axis division labels.
axis_max_h NULL Maximum value for horizontal axis.
axis_max_v NULL Maximum value for vertical axis.
axis_min_h NULL Minimum value for horizontal axis.
axis_min_v NULL Minimum value for vertical axis.
axis_overlap 5 Distance axes extend past grid.
axis_right false Enables axis on right of grid.
axis_stroke_width 2 Width of axis lines.
axis_stroke_width_h NULL Width of horizontal axis line.
axis_stroke_width_v NULL Width of vertical axis line.
axis_text_angle_h 0 Angle of horizontal axis division text.
axis_text_angle_v 0 Angle of vertical axis division text.
axis_text_callback NULL Callback function for axis division text labels.
axis_text_callback_x NULL Callback function for X axis division text labels.
axis_text_callback_y NULL Callback function for Y axis division text labels.
axis_text_colour NULL Colour of axis division labels.
axis_text_colour_h NULL Colour of horizontal axis division labels.
axis_text_colour_v NULL Colour of vertical axis division labels.
axis_text_position "outside" Position of axis division text labels.
axis_text_position_h NULL Position of horizontal axis division text labels.
axis_text_position_v NULL Position of vertical axis division text labels.
axis_text_space 2 Space between axis division text and axis.
axis_text_space_h NULL Space between horizontal axis division text and axis.
axis_text_space_v NULL Space between vertical axis division text and axis.
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.
bar_front_overlay_colour "black" Colour of bar front overlay.
bar_front_overlay_opacity 0 Opacity of bar front overlay.
bar_label_colour "rgb(0,0,0)" Colour of bar label text.
bar_label_colour_above NULL Alternative colour to use when the bar label is outside the bar.
bar_label_font "sans-serif" Font for bar labels.
bar_label_font_size 10 Size of bar label font.
bar_label_font_weight "normal" Weight of bar label font.
bar_label_position "top" Where to display the bar label.
bar_label_space 3 Space between label and top of bar.
bar_side_overlay_colour "black" Colour of bar side overlay.
bar_side_overlay_opacity 0.5 Opacity of bar side overlay.
bar_space 10 Spacing between bars.
bar_top_overlay_colour "white" Colour of bar top overlay.
bar_top_overlay_opacity 0.3 Opacity of bar top overlay.
bar_total_angle NULL Text angle for bar total labels.
bar_total_back_colour NULL Background colour for bar total labels.
bar_total_callback NULL Callback function for bar total label text.
bar_total_colour "rgb(0,0,0)" Text colour for bar total labels.
bar_total_fill NULL Fill colour for bar total label boxes.
bar_total_font "sans-serif" Font for bar total labels.
bar_total_font_adjust NULL Font width adjustment for bar total labels.
bar_total_font_size 10 Font size for bar total labels.
bar_total_font_weight "normal" Font weight for bar total labels.
bar_total_outline_colour NULL Edge colour for bar total label boxes.
bar_total_outline_thickness NULL Thickness of bar total label box edges.
bar_total_padding NULL Spacing inside bar total label boxes.
bar_total_padding_x NULL Horizontal padding inside bar total labels.
bar_total_padding_y NULL Vertical padding inside bar total labels.
bar_total_round NULL Corner radius of bar total label boxes.
bar_total_shadow_opacity NULL Opacity of bar total label shadows.
bar_total_space 3 Space between bar total label and bar.
bar_total_tail_length NULL Length of bar total label bubble tails.
bar_total_tail_width NULL Thickness of bar total label bubble tails.
bar_total_type NULL Type of bar total labels.
bar_width NULL Fixed width for bars.
bar_width_min 1 Minimum width of a bar.
best_fit_above false Depth of best-fit lines.
best_fit_colour "rgb(0,0,0)" Colour of best-fit lines.
best_fit_dash NULL Best-fit lines dash pattern.
best_fit_line NULL Enables best-fit lines.
best_fit_opacity 1 Opacity of best-fit lines.
best_fit_project NULL Best-fit line projections.
best_fit_project_colour NULL Colour of best-fit line projections.
best_fit_project_dash 4 Dash pattern for best-fit line projections.
best_fit_project_opacity NULL Opacity of best-fit line projections.
best_fit_project_width NULL Thickness of best-fit line projections.
best_fit_range NULL Range for best-fit lines.
best_fit_width 1 Thickness of best-fit lines.
bubble_scale 1 Scaling factor for bubble graphs.
compat_events false Set to true to fall back to inline event handlers, required by Adobe IE plugin.
crosshairs false Enables Javascript crosshairs.
crosshairs_colour "black" Colour of crosshairs.
crosshairs_colour_h NULL Colour of horizontal crosshair.
crosshairs_colour_v NULL Colour of vertical crosshair.
crosshairs_dash NULL Dash pattern for crosshairs.
crosshairs_dash_h NULL Dash pattern for horizontal crosshair.
crosshairs_dash_v NULL Dash pattern for vertical crosshair.
crosshairs_opacity 1 Opacity of crosshairs.
crosshairs_opacity_h NULL Opacity of horizontal crosshair.
crosshairs_opacity_v NULL Opacity of vertical crosshair.
crosshairs_show_h true Show horizontal crosshair line.
crosshairs_show_text true Show coordinates with crosshairs.
crosshairs_show_v true Show vertical crosshair line.
crosshairs_stroke_width 1 Thickness of crosshairs.
crosshairs_stroke_width_h NULL Thickness of horizontal crosshair.
crosshairs_stroke_width_v NULL Thickness of vertical crosshair.
crosshairs_text_back_colour "#fc0" Colour of coordinates box background.
crosshairs_text_colour "black" Colour of coordinates text.
crosshairs_text_font "Courier" Font for coordinates.
crosshairs_text_font_size 10 Font size for coordinates.
crosshairs_text_font_weight "normal" Font weight for coordinates.
crosshairs_text_padding 1 Padding inside coordinates box.
crosshairs_text_precision_h NULL Horizontal coordinate precision.
crosshairs_text_precision_v NULL Vertical coordinate precision.
crosshairs_text_round 0 Border radius for coordinates box.
crosshairs_text_space 3 Distance between coordinates and crosshairs.
crosshairs_text_stroke_width NULL Thickness of box around coordinates.
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_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.
dataset_axis NULL Enables dual Y-axes.
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.
datetime_text_format NULL Date format for date/time axis.
datetime_week_start "monday" Week start day for date/time axis.
decimal "." Decimal point character for axis labels, etc.
decimal_digits NULL Number of decimal digits in axis text labels.
decimal_digits_x NULL Number of decimal digits in X axis text labels.
decimal_digits_y NULL Number of decimal digits in Y axis text labels.
depth 40 Depth of 3D pie graph sides.
depth_shade_gradient array(...) Gradient for shading pie/cylinder.
description NULL The <desc> content used for the SVG document.
division_colour NULL Colour of axis division marks.
division_colour_h NULL Colour of horizontal axis division marks.
division_colour_v NULL Colour of vertical axis division marks.
division_size 3 Length of division marks.
division_size_h NULL Size of horizontal axis division marks.
division_size_v NULL Size of vertical axis division marks.
division_style "out" Style of axis division marks.
division_style_h NULL Style of horizontal axis division marks.
division_style_v NULL Style of vertical axis division marks.
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.
exception_details false When enabled, some extra details about thrown exceptions are displayed.
exception_throw false When enabled, exceptions are not caught by SVGGraph.
explode "small" Explosion method for exploded pie graph.
explode_amount 20 Maximum distance of exploded pie slices.
fill_opacity 1 Opacity of filled area.
fill_under false Fills the area under the line.
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.
grid_back_colour NULL Colour of grid area background.
grid_back_opacity 1 Opacity of grid background fill.
grid_back_stripe false Displays grid background stripes.
grid_back_stripe_colour "rgb(240,240,240)" Colour of grid background stripes.
grid_back_stripe_opacity 1 Opacity of grid background stripes.
grid_bottom NULL Position of bottom of grid.
grid_colour "rgb(220,220,220)" Colour of grid lines.
grid_colour_h NULL Colour of vertical grid lines.
grid_colour_v NULL Colour of horizontal grid lines.
grid_dash NULL Grid lines dash pattern.
grid_dash_h NULL Grid vertical lines dash pattern.
grid_dash_v NULL Grid horizontal lines dash pattern.
grid_division_h NULL Division interval on horizontal axis.
grid_division_v NULL Division interval on vertical axis.
grid_left NULL Position of left side of grid.
grid_right NULL Position of right side of grid.
grid_straight false Enables straight grid lines on radar graph.
grid_subdivision_colour "rgba(220,220,220,0.5)" Colour of grid subdivision lines.
grid_subdivision_colour_h NULL Colour of vertical grid subdivision lines.
grid_subdivision_colour_v NULL Colour of horizontal grid subdivision lines.
grid_subdivision_dash NULL Grid subdivision lines dash pattern.
grid_subdivision_dash_h NULL Grid vertical subdivision lines dash pattern.
grid_subdivision_dash_v NULL Grid horizontal subdivision lines dash pattern.
grid_top NULL Position of top of grid.
group_space 3 Space between bars when grouped.
guideline NULL Adds guide/target lines to the graph.
guideline_above false Relative depth of guide lines.
guideline_colour "rgb(0,0,0)" Colour of guide lines.
guideline_dash "4,3" Guide line dash pattern.
guideline_font "sans-serif" Font for guide line titles.
guideline_font_adjust 0.6 Guide line title font adjustment.
guideline_font_size 10 Guide line title font size.
guideline_font_weight "normal" Guide line title font weight.
guideline_length NULL Length of guideline in pixels.
guideline_length_units NULL Length of guide line in graph units.
guideline_opacity 1 Opacity of guide line.
guideline_stroke_width 1 Width of guide lines.
guideline_text_align NULL Alignment of guide line title text.
guideline_text_angle 0 Angle of guide line title text.
guideline_text_colour NULL Colour of guide line title.
guideline_text_opacity NULL Opacity of guide line title.
guideline_text_padding 5 Space between guide line and title.
guideline_text_position "inside top right" Position of guide line text label.
id_prefix "" Inserts a prefix string in front of all generated element ids.
increment NULL X-axis increment for histograms.
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.
label NULL Adds custom labels to the graph.
label_back_colour NULL Pie graph label background colour.
label_colour "rgb(0,0,0)" Colour for axis label text.
label_colour_h NULL Colour for horizontal axis label text.
label_colour_v NULL Colour for vertical axis label text.
label_fade_in_speed 0 Pie graph label fade in speed.
label_fade_out_speed 0 Pie graph label fade out speed.
label_font "sans-serif" Font for axis labels.
label_font_h NULL Font for horizontal axis label.
label_font_size 10 Font size for axis labels.
label_font_size_h NULL Font size for horizontal axis label.
label_font_size_v NULL Font size for vertical axis label.
label_font_v NULL Font for vertical axis label.
label_font_weight "normal" Font weight for axis labels.
label_font_weight_h NULL Font weight for horizontal axis label.
label_font_weight_v NULL Font weight for vertical axis label.
label_h "" Text label for horizontal axis.
label_percent_decimals 2 Decimal places in label percentages.
label_position 0.75 Distance of label from centre.
label_space 6 Spacing around axis labels.
label_v "" Text label for vertical axis.
label_x "" Text label for X axis.
label_y "" Text label for Y axis.
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.
line_dash NULL Dash pattern for graph lines.
line_dataset 1 Datasets to draw as lines.
line_stroke_width 2 Thickness of graph lines.
link_base "" Prepended to all relative links.
link_target "_blank" The target attribute for every link.
log_axis_y false Enables logarithmic Y-axis divisions.
log_axis_y_base 10 Base of the logarithmic axis scale.
marker_colour NULL Colour of markers.
marker_size 5 Size of markers.
marker_stroke_colour NULL Colour of marker outlines.
marker_stroke_width 1 Thickness of marker outlines.
marker_type "circle" Shape of markers.
median_stroke_width 2 Thickness of bar and whisker median line.
minify true Removes extra whitespace from SVG content.
minify_js NULL Callback function for minifying Javascript code.
minimum_grid_spacing 15 Minimum distance between grid/axis divisions.
minimum_grid_spacing_h NULL Minimum distance between horizontal axis divisions.
minimum_grid_spacing_v NULL Minimum distance between vertical axis divisions.
minimum_subdivision 5 Minimum distance between subdivisions.
minimum_units_y 0 Minimum units to display on Y axis.
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.
percentage false Enables percentages for histogram.
precision 5 Sets the precision of values output in the SVG content.
project_angle 30 Angle of 3D graph projection.
reverse false Reverses direction of graph.
scatter_2d false Enables scatter 2D data format.
semantic_classes false Adds classes to various elements.
shape NULL Adds custom shapes to the graph.
show_axes true Enables axis display.
show_axis_h true Enables horizontal axis line.
show_axis_text_h true Enables labelling of horizontal axis divisions.
show_axis_text_v true Enables labelling of vertical axis divisions.
show_axis_v true Enables vertical axis line.
show_bar_labels false Displays bar value in or above bar.
show_bar_totals false Enables displaying total for bar stack.
show_data_labels false Displays labels for data items.
show_divisions true Enables axis division marks.
show_grid true Disables displaying grid.
show_grid_h true Disables displaying horizontal grid lines.
show_grid_subdivisions false Enables displaying grid subdivisions.
show_grid_v true Disables displaying vertical grid lines.
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_subdivisions false Enables axis subdivision marks.
show_tooltips true Enables display of tooltips over bars, pie slices, markers.
show_x_axis true Enables X-axis on radar graphs.
skew_side true Enables skewing the bar side fill pattern.
skew_top true Enables skewing the bar top fill pattern.
sort true Enables sorting pie graph values.
stack_group NULL Datasets with which to start stacks.
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.
subdivision_colour NULL Colour of axis subdivision marks.
subdivision_colour_h NULL Colour of horizontal axis subdivision marks.
subdivision_colour_v NULL Colour of vertical axis subdivision marks.
subdivision_h NULL Horizontal axis subdivision interval.
subdivision_size 2 Length of axis subdivision marks.
subdivision_size_h NULL Length of horizontal axis subdivision marks.
subdivision_size_v NULL Length of vertical axis subdivision marks.
subdivision_style "out" Style of axis subdivision marks.
subdivision_style_h NULL Style of horizontal axis subdivision marks.
subdivision_style_v NULL Style of vertical axis subdivision marks.
subdivision_v NULL Vertical axis subdivision interval.
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_before_x NULL Units shown before value on X-axis.
units_before_y NULL Units shown before value on Y-axis.
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.
units_x NULL Units shown after value on X-axis.
units_y NULL Units shown after value on Y-axis.
whisker_dash "2,2" Dash pattern for bar and whisker lines.
whisker_width 0.75 Length of horizontal whisker line.

« Back to top of page Main SVGGraph page »