Skip to content

Displaying ChatGPT-Generated Charts in Dify #10910

Answered by crazywoola
yyipkei123 asked this question in Help
Discussion options

You must be logged in to vote

This PR #6961 add this feature long time ago. You could use following syntax to render charts.

{
  "xAxis": {
    "type": "category",
    "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
  },
  "yAxis": {
    "type": "value"
  },
  "series": [
    {
      "data": [120, 200, 150, 80, 70, 110, 130],
      "type": "bar",
      "showBackground": true,
      "backgroundStyle": {
        "color": "rgba(180, 180, 180, 0.2)"
      }
    }
  ]
}

Which should render something into.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crazywoola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants