【发布时间】:2021-08-05 19:29:29
【问题描述】:
无论出于何种原因,我的系列都没有在 ExtJS 7.2 中生成标记。 以下是我的代码,并附上当前输出的图像。
new Ext.chart.series.Line({
axis: 'left',
//smooth: true,
fill:false,
xField: 'name',
yField: 'aggregate',
style: {
lineWidth: 2,
stroke: '#30BDA7',
fillOpacity: 0.5
},
title: 'Aggregate Count',
tooltip:{
trackMouse:true,
titleAlign:'center',
renderer: function(toolTip, record, ctx) {
toolTip.setHtml(record.get(ctx.field));
}
},
marker: {
type: 'path',
path: ['M', - 4, 0, 0, 4, 4, 0, 0, - 4, 'Z'],
stroke: '#30BDA7',
//'stroke-width':5,
lineWidth: 2,
fill: 'black'
},
showMarkers:true,
selectionTolerance:20
})
【问题讨论】:
标签: extjs