2013-09-26 26 views
0

是否可以使用Highcharts credits選項的圖像?我希望添加一個小徽標而不是文本。我嘗試使用style屬性設置背景圖像,並將圖像標記而不是文本傳遞給text屬性,但圖像從不出現。在Highcharts中使用圖片

credits: { 
    text: '', 
    href: 'http://www.example.com', 
    style: { 
     backgroundImage: 'url(http://placehold.it/50x20)' 
    } 
} 

JSFiddle

回答

1

我看不到的方式使用圖表學分選項,但沒有什麼可以阻止你使用的渲染器添加一個標誌:

var chart = $('#container').highcharts(); 
chart.renderer.image('http://placehold.it/50x20',350,360,50,20).add(); 

http://jsfiddle.net/yVTmG/