切片显示在环切片外的百分比 [英] Percentage in Slices Showing Outside OF the Ring Slices

查看:156
本文介绍了切片显示在环切片外的百分比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌饼图百分比显示在切片以外,我想显示百分比像红色切片一样

解决方案

您的图表尺寸太小该字体大小。

一个选项是更改属性 fontSize 。那是默认的字体大小。它会影响一切。



另一个是改变 fontSize 属性 pieSliceTextStyle 。例如:

  var options = {
title:'Chart Title',
pieHole:0.4,
pieSliceTextStyle:{
fontSize:7
}
};

选择适合您的字体大小。



请参阅google文档关于饼图配置选项


Google Pie Chart Percentage Is showing Outside The Slices.,i wnat to show percentage like red colour slice

解决方案

You have too small chart size for that font size.

One option is to change property fontSize. That one is default font size. It will influence everything.

The other is to change fontSize of property pieSliceTextStyle. For example:

    var options = {
        title: 'Chart Title',
        pieHole: 0.4,
        pieSliceTextStyle: {
            fontSize: 7
        }
    };

Choose font size which suits you.

See google docs about pie chart configuration options

这篇关于切片显示在环切片外的百分比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆