I have been creating a HTTP POST call to create a new Look on the API (which is close to working).
This is coming from a modified copy of the Look GET from another Look (in an attempt to create a duplicate).
I have an issue where the visualization is showing in the default tabular format instead of the correct.
I assume (but it is hard to tell from the docs that it is the vis_config which is used).
I am passing in what I believe is correct JSON (snippet below):
“vis_config”: {
“stacking”: “”,
“show_value_labels”: true,
“label_density”: 25,
“legend_position”: “center”,
“x_axis_gridlines”: false,
“y_axis_gridlines”: true,
“show_view_names”: false,
“limit_displayed_rows”: false,
“y_axis_combined”: false,
“show_y_axis_labels”: false,
“show_y_axis_ticks”: false,
“y_axis_tick_density”: “default”,
“y_axis_tick_density_custom”: 5,
“show_x_axis_label”: true,
“show_x_axis_ticks”: true,
“x_axis_scale”: “auto”,
“y_axis_scale_mode”: “linear”,
“ordering”: “none”,
“show_null_labels”: false,
“show_totals_labels”: false,
“show_silhouette”: false,
“totals_color”: “#808080”,
“show_null_points”: true,
“point_style”: “circle”,
“interpolation”: “linear”,
“custom_color_enabled”: false,
“custom_color”: “forestgreen”,
“show_single_value_title”: true,
“show_comparison”: false,
“comparison_type”: “value”,
“comparison_reverse_colors”: false,
“show_comparison_label”: true,
“type”: “looker_bar”,
“series_types”: {
“test.test_portion”: “line”,
“test_facts.total”: “line”
},
“single_value_title”: “test values”
},
The response I get back shows null for the “vis_config” so I assume that is the cause of the issue but I am not sure why it isn’t working.
Is anyone able to help or have any ideas?