我用下面的代碼創建一個ExtJs圖表,不幸的是我不知道如何設計xAxis和yAxis。在ExtJs文檔中找不到任何幫助。如何格式化ExtJs圖表軸?
Ext.create('Ext.chart.Chart', {
renderTo: div,
theme: 'Browser:gradients',
width: div.offsetWidth,
height: div.offsetHeight,
animate: true,
store: store,
axes: [
{
title: 'Number of Ratings',
type: 'Numeric',
position: 'left',
fields: ['data1', 'data2', 'data3'],
minimum: 0,
tips: {
trackMouse: true,
width: 110,
height: 25,
renderer: function (storeItem, item) {
this.setTitle(storeItem.get('name');
}
},
},
{
title: 'Rating Categories',
type: 'Category',
position: 'bottom',
fields: ['name'],
}
],
series: [
{
type: 'column',
title: createLegendTitles(response.ratingResults),
xField: 'name',
yField: ['data1','data2', 'data3'],
}
],
});
如何格式化圖表的xAxis和yAxis? (例如,設置顏色,字體大小,字體家族等)
你解決這個問題?可以üplz分享?ty – Armance
不,不幸的是不是 – dilino
看到我的回覆below.it幫助我..hope它可以幫助你 – Armance