Код Barseries:
Код: Выделить всё
TrackerFormatString = "{PropertyX}\n{4}"
Код: Выделить всё
{4}
есть ось X, где метки
Код: Выделить всё
// Настройка оси X
var categoryAxis = new CategoryAxis
{
Position = AxisPosition.Bottom,
MajorGridlineStyle = LineStyle.Solid,
MajorGridlineThickness = 0.4,
TicklineColor = OxyColor.Parse("#2c2e31"),
MajorGridlineColor = OxyColor.Parse("#2c2e31"),
IsPanEnabled = false,
IsZoomEnabled = false,
TextColor = OxyColor.Parse("#646669"),
TitleColor = OxyColor.Parse("#646669")
};
// Добавляем метки оси X
categoryAxis.Labels.Add("0");
categoryAxis.Labels.Add("1");
categoryAxis.Labels.Add("2");
categoryAxis.Labels.Add("3");
categoryAxis.Labels.Add("4");
categoryAxis.Labels.Add("5");
categoryAxis.Labels.Add("6");
categoryAxis.Labels.Add("7");
categoryAxis.Labels.Add("8");
categoryAxis.Labels.Add("9");
categoryAxis.Labels.Add("10");
categoryAxis.Labels.Add("11");
PlotModel.Axes.Add(categoryAxis);
Как я уже сказал, я проверил документацию oxyplot, где нашел это.>
Подробнее здесь: https://stackoverflow.com/questions/786 ... oesnt-work