DB-GPT [Feature]: How to show other chart types supported by MATPLOTLIB or others

4jb9z9bj  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(44)

我们可以在以下图表类型中添加其他图表类型(scene/chat_dashboard/template/report/dashboard.json):
Matplotlib支持许多其他图表类型。如何添加它们?尝试添加到以下内容,但它不起作用。请建议如何添加:

{
 "title": "Report",
 "name": "report",
 "introduce": "",
 "layout": "TODO",
 "supported_chart_type":[ "Table", "LineChart", "BarChart", "IndicatorValue"],
 "key_metrics":[],
 "trends": []
}
  1. 如何为维度显示不同的颜色?例如,按年份销售的产品线。以不同颜色的柱状图显示产品线
  2. 我们如何集成其他库,如Plotly?
ux6nzvsh

ux6nzvsh1#

我们可以在以下图表类型中添加其他图表类型(scene/chat_dashboard/template/report/dashboard.json):Matplotlib支持许多其他图表类型。如何添加它们?尝试将其添加到以下内容中,但它不起作用。请建议如何添加{"title": "Report", "name": "report", "introduce": "", "layout": "TODO", "supported_chart_type":["Table", "LineChart", "BarChart", "IndicatorValue"], "key_metrics":[], "trends": []}

  1. 如何为维度显示不同的颜色?例如,按年份销售的产品线。以不同颜色显示产品线作为条形图
  2. 我们如何集成其他库,如Plotly?
    下一次迭代将支持自定义提示和自定义图表。
zhte4eai

zhte4eai2#

在下一个版本发布之前,我们如何添加其他支持的图表类型?你能为这行代码 "supported_chart_type":[ "Table", "LineChart", "BarChart", "IndicatorValue"] 提供合适的值吗?
这些有效的值是什么?
线图
柱状图
散点图
饼图
面积图
直方图

相关问题