Chart View Settings

This page describes how to set the view settings for a specific chart.

You can provide specific settings for each chart on your presentation. These settings can include chart-type, font-family, sorting, placeholder. Check below for a full spec of the attributes available.

Chart view settings

Name

Type

Required

Description

Values

slide_master_index

Integer

true

This attribute defines which slide master to use from the template

0-99

slide_layout_index

Integer/String

true

This attribute defines which slide layout to use from the template. You can also pass the name of the layout instead as it appears on powerpoint.

0-99, "Chart and Image"

placeholder_index

Integer/String

true

This attribute defines which chart placeholder to use for the chart. You can also pass the name of the placeholder instead as it appears on powerpoint.

0-99, "Chart placeholder 5"

chart_type

String

true

This attribute defines the chart_type.

Check the chart types section.

show_legend

String

false

Controls the position and visibility of the chart legend.

[

"none",

"bottom",

"left",

"right",

"top"

]

show_legend_font_family

String

false

Defines the font-family used for the chart legend.

Check the fonts section

show_data_labels

String

false

This attribute defines the position of the data labels in the chart.

Check the data labels section.

show_value_axis

String

false

This attribute controls the position of the y axis.

[

"none",

"default",

"opposite"

]

show_sort

String

false

This attribute controls the sorting of the values on the chart.

[

"none",

"descending",

"ascending"

]

sorting_value

String

false

This attribute controls the sorting by value.

Cross break inner column name. If provided, and show_sort descending/ascending, then data will be sorted by it

show_category_axis_font_family

String

false

This attribute controls the font-family for the x axis.

Check the font section.

show_value_axis_font_family

String

false

This attribute controls the font-family for the y axis.

Check the font section.

show_data_label_font_family

String

false

This attribute controls the font-family for the data label.

Check the font section.

series_marker_style

String

false

This attribute controls the marker displayed when hovering the data points.

[

"automatic",

"circle",

"dash",

"diamond",

"dot",

"none",

"picture",

"plus",

"square",

"star"

]

series_by

String

false

This attribute controls how data will be presented.

["columns", "rows"]

series_line_color

String

false

The main color of the series.

RGB

show_data_label_font_color

String

false

Color of the data label.

RGB

show_legend_font_color

String

false

Legend font color

RGB

show_value_axis_font_color

String

false

Value Axis font color.

RGB

vaxis_tick_label_line_color

String

false

Value Axis tick line color.

RGB

show_category_axis_font_color

String

false

Column axis font color.

RGB

caxis_tick_label_line_color

String

false

Column Axis tick line color.

RGB

show_data_label_font_size

Integer

false

Data Label font size.

From 1 to x

show_value_axis_font_size

Integer

false

Value axis font size.

From 1 to x

show_category_axis_font_size

Integer

false

Column axis font size.

From 1 to x

caxis_tick_label_line_width

Integer

false

Column Axis tick line width.

From 0 to x

series_line_width

Integer

false

Series line width.

From 0 to x

show_legend_font_size

Integer

false

Legend font size.

From 0 to x

max_axis_scale

Integer

false

Maximum value for axis.

From 0 to x

min_axis_scale

Integer

false

Minimum value for axis.

From 0 to x

decimal_places

Integer

false

Data Label decimal places.

From 0 to x

plot_gap_width

Integer

false

Defines width of gap in the chart.

From 0 to 500

plot_overlap

Integer

false

Data Labels overlap offset.

From 0 to 500

legend_in_layout

Boolean

false

Controls legend visibility.

[true , false]

series_smooth_line

Boolean

false

Controls line anti-aliasing

[true , false]

hide_percentage

Boolean

false

Hide percentage sign.

[true , false]

show_legend_font_bold

Boolean

false

Legend font weight.

[true , false]

show_horizontal_gridlines

Boolean

false

Show chart horizontal grid lines.

[true , false]

show_vertical_gridlines

Boolean

false

Show chart vertical grid lines.

[true , false]

show_category_axis_font_bold

Boolean

false

Category axis font weight.

[true , false]

show_value_axis_font_bold

Boolean

false

Value axis font weight.

[true , false]

show_data_label_font_bold

Boolean

false

Data labels font weight.

[true , false]

Example in JSON

{
  "view_settings": {
    "slide_master_index": 0,
    "slide_layout_index": 0,
    "placeholder_index": 0,
    "chart_type": "bar",
    "hide_percentage": false,
    "show_legend": "bottom",
    "show_legend_font_family": "auto",
    "show_legend_font_size": 12,
    "show_legend_font_bold": false,
    "show_legend_font_color": "rgb(0,0,0)",
    "show_data_labels": "center",
    "show_data_label_font_family": "auto",
    "show_data_label_font_size": 12,
    "show_data_label_font_bold": false,
    "show_data_label_font_color": "rgb(0,0,0)",
    "show_horizontal_gridlines": false,
    "show_vertical_gridlines": false,
    "show_value_axis": "default",
    "show_value_axis_font_family": "auto",
    "show_value_axis_font_size": 12,
    "show_value_axis_font_bold": false,
    "show_value_axis_font_color": "rgb(0,0,0)",
    "show_category_axis_font_family": "auto",
    "show_category_axis_font_size": 12,
    "show_category_axis_font_bold": false,
    "show_category_axis_font_color": "rgb(0,0,0)",
    "show_sort": "none",
    "sorting_value": "no-sorting",
    "max_axis_scale": null,
    "min_axis_scale": null,
    "decimal_places": 0,
    "legend_in_layout": false,
    "vaxis_tick_label_line_color": "rgb(0,0,0)",
    "caxis_tick_label_line_color": "rgb(0,0,0)",
    "caxis_tick_label_line_width": 1,
    "plot_overlap": 0,
    "plot_gap_width": 50
  }
}

Last updated