feat: add inline chart support for notes
- Add NoteChart component using Recharts (bar, line, area, pie, radar, funnel, gauge)
- Add generate_chart and insert_chart_in_note AI tools
- Add chart code block support in MarkdownContent (```chart ... ```)
- Support JSON and simple data formats (label: value)
- Add i18n translations for chart features
Chart syntax examples:
- JSON: ```chart {"type":"bar","data":[{"label":"A","value":10}]} ```
- Simple: ```chart\nbar\nSales Data\nJan: 120\nFeb: 150\n```
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -635,6 +635,27 @@
|
||||
"generationTools": "Generation tools",
|
||||
"generateSlidesLoading": "⏳ Generating presentation...",
|
||||
"generateDiagramLoading": "⏳ Generating diagram...",
|
||||
"generateChartLoading": "⏳ Generating chart...",
|
||||
"chart": {
|
||||
"title": "Chart",
|
||||
"generate": "Generate chart",
|
||||
"generateDesc": "Create a visualization from data",
|
||||
"type": "Chart type",
|
||||
"typeBar": "Bar",
|
||||
"typeBarH": "Horizontal Bar",
|
||||
"typeLine": "Line",
|
||||
"typeArea": "Area",
|
||||
"typePie": "Pie",
|
||||
"typeRadar": "Radar",
|
||||
"typeFunnel": "Funnel",
|
||||
"typeGauge": "Gauge",
|
||||
"autoDetect": "Auto detect",
|
||||
"insertInNote": "Insert in note",
|
||||
"chartReady": "Chart ready!",
|
||||
"insertedMessage": "Chart inserted in note",
|
||||
"noDataError": "No data found to create chart",
|
||||
"invalidFormat": "Invalid data format"
|
||||
},
|
||||
"errorShort": "Error",
|
||||
"readyToast": "Ready!",
|
||||
"downloadFailedToast": "Download failed",
|
||||
|
||||
Reference in New Issue
Block a user