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

chart_type

String

true

This attribute defines the chart_type.

Check the chart types section.

placeholder_index

Integer/String

true

This attribute defines in which placeholder the chart should be mounted. Should be unique. You can also pass the name of the placeholder instead as it appears in power point.

0-99

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": {
    "chart_type": "bar",
    "hide_percentage": true,
    "placeholder_index": 0,
    "show_legend": "bottom",
    "show_legend_font_family": "arial_narrow",
    "show_legend_font_size": 11,
    "show_legend_font_bold": true,
    "show_legend_font_color": "rgb(89,89,89)",
    "show_data_labels": "inside_end",
    "show_data_label_font_family": "arial_narrow",
    "show_data_label_font_size": 11,
    "show_data_label_font_bold": true,
    "show_data_label_font_color": "rgb(255,255,255)",
    "show_horizontal_gridlines": false,
    "show_vertical_gridlines": true,
    "show_value_axis": "none",
    "show_value_axis_font_family": "arial_narrow",
    "show_value_axis_font_size": 10,
    "show_value_axis_font_bold": true,
    "show_value_axis_font_color": "rgb(63,63,63)",
    "show_category_axis_font_family": "arial_narrow",
    "show_category_axis_font_size": 11,
    "show_category_axis_font_bold": true,
    "show_category_axis_font_color": "rgb(63,63,63)",
    "show_sort": "none",
    "sorting_value": "no-sorting",
    "max_axis_scale": 100,
    "min_axis_scale": 0,
    "decimal_places": 0,
    "caxis_tick_label_line_color": "rgb(143,143,143)",
    "caxis_tick_label_line_width": 1,
    "legend_in_layout": false,
    "plot_gap_width": 50,
    "plot_overlap": 0,
    "vaxis_tick_label_line_color": "rgb(143,143,143)",
    "show_chart_title": false,
    "chart_title_font_bold": true,
    "chart_title_font_size": 12,
    "chart_title_font_color": "rgb(123,123,123)",
    "chart_title_font_family": "arial_narrow"
  }
}

Last updated