회사_ C#, MSSQL, WPF
C# devExpress chart 그래프 폭 넓게 하는 방법! 달일때 (month)
lsme
2024. 9. 20. 09:00
[ 문제 ]
DevExpress WPF Charts에서
일, 주 일때는 그래프가 잘 보이는데,
달(month)일때는 실같이 얇~게 보여서 엥엥엥 하루종일 찾아봤는데 결국 못찾음......
그 후 시간이 흘러 ......
이것도 안됨..
//for (int i = 0; i < 4; i++)
//{
// var series = new BarStackedSeries2D();
// series.BarWidth = 1;
// this.cht_Main.Series.Add(series);
//}
chat gpt는 다음과 같이 알려줌.. (이건 걍 안됨)
axisy.wholerange.setminmaxvalues(0, 30);
[해결방법]
아래와 같이 하면 된다.!
this.cht_Main.AxisX.DateTimeScaleOptions = new ManualDateTimeScaleOptions()
{
MeasureUnit =DevExpress.Xpf.Charts.DateTimeMeasureUnit.Month
};