Highcharts 页脚间距

标签 highcharts

使用 Highcharts 我想将页脚文本放在图表下方。我能看到的唯一方法是使用 credits 属性。但是对于长文本,它看起来很局促。有没有办法设置学分的样式以增加间距?

http://jsfiddle.net/QbEvN/

    credits: {
        position: {
            align: 'center'
        },
        text: 'this is some really long text that i am using as a footer',
        href: null
    },

最佳答案

如果您决心利用页脚的积分选项。以下是一些您可以根据需要使用的选项:

    chart: {
        marginBottom: 100 //space from axis to chart bottom
    },
    legend: {y: -20}, // position between axis and legend

    credits: {
        text: 'This is so super duper uper long text. Look at all this space!',
        position: {
            align: 'center',
            y: -5 // position of credits
        },
        style: {
            fontSize: '14pt' // you can style it!
        }
    },

fiddle here .

enter image description here

关于Highcharts 页脚间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16065727/

相关文章:

javascript - 如何使用 highcharts 在饼图标签中正确显示时间数据的刻度?

javascript - 将 XML 解析为 JSON 时遇到问题 - Javascript

javascript - 如何从已显示的 Highcharts 系列中绘制新图表

javascript - 在 Highcharts v4.1.5 中 chop Y 轴标题

charts - Highcharts - 具有向下钻取到瀑布的柱形图

javascript - 使用毫秒作为 x 轴时接收到不正确的日期时间?

javascript - 量表的渐变填充 - Highcharts

django - 如何将我的 sqlite 数据传递给 django 并制作图表?

javascript - 如何为 highchart 的列设置最小/最大宽度?

javascript - Highchart 在日期图表中显示错误的月份