Open JLoveI opened 9 months ago
const histogramPlot = new Histogram('container', {
data,
binField: 'value',
binWidth: 2,
annotations: [
{
type: 'line',
start: [12, 0],
end: [12, 12],
},
],
});
不生效, g2可以
不用配置,用通用API里的 addAnnotations 可以
plot.addAnnotations(annotations: Annotation[], view?: View) => void;
🐛 Bug description [Please make everyone to understand it]
📷 Step to reproduce
🏞 Expected result
🚑 Any additional [like screenshots]