Create chart REST API #32567
Replies: 1 comment
-
|
Hey @rsaleev, I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this challenge together! The issue you're encountering is related to the SQL error that arises because the column "index" is used in the To resolve this issue, you need to ensure that the "index" column is either included in the Here's what you can do:
If the "index" column is not meant to be aggregated, including it in the Unfortunately, the specific handling of columns in the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to create a chart only via API, see payload below, but I can't achieve the row ordering by column that not used in the query via
columnsorall_columns.{ "datasource_id": 54, "datasource_type": "table", "dashboards": [ 183 ], "owners": [ 1 ], "params": "{\"all_columns\":[\"Metric Name\",\"Value\"],\"adhoc_filters\":[{\"expressionType\":\"SIMPLE\",\"subject\":\"Table\",\"operator\":\"ILIKE\",\"comparator\":\"Process Data\",\"clause\":\"WHERE\",\"sqlExpression\":null}],\"dashboards\":[183],\"order_by_cols\":[\"[\\\"index\\\", true]\"]}", "query_context": "{\"datasource\":{\"id\":54,\"type\":\"table\"},\"queries\":[{\"filters\":[{\"col\":\"Table\",\"op\":\"ILIKE\",\"val\":\"Process Data\"}],\"columns\":[\"Metric Name\",\"Value\"],\"extras\":{\"having\":\"\",\"where\":\"\"},\"orderby\":[\"[\\\"index\\\", true]\"]}],\"row_limit\":1000}", "slice_name": "Test2", "viz_type": "table" }This payload in request creates the chart, even form is properly filled
But there is an error in dashboard view
When I click the save button in chart menu then chart is viewed properly on dashboard. How to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions