开发者

jqPlot, canvasrenderer labels with html inside them

开发者 https://www.devze.com 2022-12-13 16:55 出处:网络
i am using jqplotto graph some data. my axis label has a micro in it. µ but it is being passed through as tha开发者_StackOverflowt and not an entity.

i am using jqplot to graph some data. my axis label has a micro in it. µ but it is being passed through as tha开发者_StackOverflowt and not an entity. here is the code

axes:{
    yaxis:{
        label:'L,µH',
        autoscale: true,
        labelRenderer: $.jqplot.CanvasAxisLabelRenderer
    }
}

is there a way to not have the entity be converted? thanks!


Not sure what your actual problem is, but you could try replacing

label:'L,µH',

with

label:'L,µH',

I don't really understand what you are saying


Huh...? Could you be more clear on what your real problem is???

Test site with µ and µ http://jsbin.com/olove

jqplot http://img13.imageshack.us/img13/7264/clipboard01pm.jpg

Which one do you want? Both versions work first one displays the character Μι itself second one displays the html entity.

0

精彩评论

暂无评论...
验证码 换一张
取 消