English 中文(简体)
高档次表
原标题:highcharts scale chart to width

我试图在我400页的海图上打上清晰的宽度,但当我这样做的时候,海图就会消失! 我只想缩小规模,缩小规模,因为它正在一个讲电的机动地点,

谁知道我可以做些什么?

问题回答

在将博客内容输入杂草流动时,我不得不处理这一问题。 你们总是可以依靠那些书写条目的人来制作图像。 因此,我如何解决这一问题。

英文: 当一个“页面”开始使用时,通过每一页带有宽度的图像,如果它比该装置的宽度大,就会抹去高,将宽度提高到100%。

如果你轮流使用你的器具,这又使图像更形有益。

这里是法典......

$("div").live("pageinit", function(){
    var $images = $("img[width]");
    $images.each(function(){ 
        try{
            var $image = $(this);
            var currentWidth = Number($image.attr("width"));
            if(currentWidth > 320){
                $image.width("100%");
                $image.removeAttr("height");
            }
        }catch(e){
            /*alert("page init error
 image scale fail
"+e)*/
        }
    });
}); 

I had the same problem. To fix it you can scale the container with this css: .chart-container { transform: scale(0.75); }

And increase the highcharts font-size // For a pie chart: plotOptions: { pie: { style: { fontSize: 22px } } }





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签