You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently several types of charts that can be used, including line, column, area, pie, scanner, bubble, heatmap, box, and table.
278
322
For example, selecting a set of data to display in a column chart format and specifying the x and y axis data.
279
323
Usually, there can only be one set of x-axis data, while there can be multiple sets of y-axis data.
280
-
Hand over your code to the Executor for execution.
281
-
There can only be x-axis and y-axis mappings in columnMapping
282
-
In columnMapping, some or all data can be mapped.
324
+
325
+
Please check the SQL statement in context. If a gourp by is included in the SQL statement, the chart must use fields that are not designated as x-axis or y-axis as gourp by values.
283
326
There can only be one mapping on the x-axis, such as {"mon": "x"}.
284
327
There can be one or more mappings on the y-axis, such as {"prao": "y", "prbo": "y"}.
328
+
gourp by can only have one mapping, such as
329
+
{"fix":"series"}
330
+
285
331
The output should be formatted as a JSON instance that conforms to the JSON schema below, the JSON is a list of dict,
Solve the task step by step if you need to. If a plan is not provided, explain your plan first. Be clear which step uses code, and which step uses your language skill.
937
983
When using code, you must indicate the script type in the code block. The user cannot provide any other feedback or perform any other action beyond executing the code you suggest. The user can't modify your code. So do not suggest incomplete code which requires users to modify. Don't use a code block if it's not intended to be executed by the user.
938
984
If you want the user to save the code in a file before executing it, put # filename: <filename> inside the code block as the first line. Don't include multiple code blocks in one response. Do not ask users to copy and paste the result. Instead, use 'print' function for the output when relevant. Check the execution result returned by the user.
985
+
If you need to use %Y-%M to query the date or timestamp, please use %Y-%M. You cannot use %%Y-%%M.(For example you should use SELECT * FROM your_table WHERE DATE_FORMAT(your_date_column, '%Y-%M') = '2024-February'; instead of SELECT * FROM your_table WHERE DATE_FORMAT(your_date_column, '%%Y-%%M') = '2024-%%M';)
939
986
If the result indicates there is an error, fix the error and output the code again. Suggest the full code instead of partial code or code changes. If the error can't be fixed or if the task is not solved even after the code is executed successfully, analyze the problem, revisit your assumption, collect additional info you need, and think of a different approach to try.
940
987
When you find an answer, verify the answer carefully. Include verifiable evidence in your response if possible.
941
988
Reply "TERMINATE" in the end when everything is done.
logs="The echarts code is too long, please simplify the code or data (for example, only keep two decimal places), and ensure that the echarts code length does not exceed 10001"
0 commit comments