Is it possible to add title to charts?

后端 未结 5 1350
傲寒
傲寒 2021-02-13 12:39

I want to add a title to a chart, like in the gauge example or a pie chart. I want to display a title under or on top of the chart. Is this possible? I\'ve been looking and can\

5条回答
  •  离开以前
    2021-02-13 13:28

    Yes you can using Ext.chart.axis.Gauge. Inside items put an axis config with a title:

    Ext.create('Ext.chart.Chart', {
       default chart settings here
    
       ...
    
       items: [{
                    axes: [
                        {
                            position: 'gauge',
                            type: 'Gauge',
                            title: 'Net Pips',
                            maximum: 500,
                            minimum: 0
                        }
                    ]
       }]
    })
    

提交回复
热议问题