1.可以单独给X轴设置一组数据源,比如
- flexChart1.AxisX.DataSource = new string[] { "a","b","c","d","e", "f", "g", "h", "i", "j" };
复制代码
这个数量和你设置的flexChart1.DataSource中的数量保持一致即可,比如你给flexchart绑了一个数量为10的List<Point>,就可以用上面的10给字符来替代
2.可以通过 SymbolRendering事件来设置,但是也有宽度限制,或者你用
flexChart1.Series[0].SymbolRendering += Flexchart_SymbolRendering;
private void Flexchart_SymbolRendering(object sender, RenderSymbolEventArgs e)
{
e.Cancel= true;
e.Engine.DrawRect(e.Point.X- 5* (e.Index + 1), e.Point.Y, 10*(e.Index+1), 500);
} |