langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
48.72k stars 6.98k forks source link

Generate bar chart with Chinese xAxis displaying garbled characters #9657

Open XXGUI opened 2 hours ago

XXGUI commented 2 hours ago

Self Checks

Dify version

0.10.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

c8261ce7-70d8-4ea0-9c9d-431817e676f8

✔️ Expected Behavior

When the x-axis is in Chinese, it displays normally

❌ Actual Behavior

Display garbled characters when the x-axis is in Chinese

dosubot[bot] commented 2 hours ago

Hey @XXGUI! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together!

I found similar discussions regarding issues with displaying Chinese characters correctly on charts in Dify:

  1. The Chinese characters cannot be displayed correctly on the axes of the charts generated by the chart creation tool [1].
  2. The Chinese characters cannot be displayed correctly on the axes of the charts generated by the chart creation tool [2].

These discussions are still open and do not have a confirmed solution yet. However, a related issue with Japanese characters suggested ensuring proper encoding and using a text extraction tool that supports the specific language characters. You might want to check if the charting library or tool you are using supports Chinese characters and if there are any encoding settings you can adjust.

To continue talking to Dosu, mention @dosu.