Jump to content

Recommended Posts

Posted

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();
}

image.png.57436bdc297b86fa885554c4de4f8932.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...