Ario.Paxaz Posted July 21, 2025 Posted July 21, 2025 Hello How can you add text above the list of items in a pie chart? I want this text to appear when I save the chart as an image. Quote
Sherzod Posted July 22, 2025 Posted July 22, 2025 Use short texts! UniChart.ClientEvents.ExtEvents -> function afterrender(sender, eOpts) { var chart = sender.chart; var legend = chart.legend; var surf = legend.getSurface(); var oldTitle = surf.get('legend-title'); if (oldTitle) { surf.remove(oldTitle, true); } surf.add({ type: 'text', id: 'legend-title', text: 'TEXT...', font: 'bold 15px Arial', fillStyle: 'red', x: 16, y: 46 }); surf.renderFrame(); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.