我用下面的代码创建一个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