private static void SetupChart(FastMultiChart.FastMultiChart chart) { chart.GetXScaleValue = FastMultiChartUtils.GetDateTimeScaleValue; chart.GetXValue = FastMultiChartUtils.GetDateTimeValue; chart.GetXDivisionValue = FastMultiChartUtils.GetDateTimeDivisionValue; chart.GetMinXScaleDivision = FastMultiChartUtils.GetDateTimeMinScaleDivision; chart.GetMinYScaleDivision = FastMultiChartUtils.GetDoubleMinScaleDivision; chart.GetXStringValue = FastMultiChartUtils.GetDateTimeStringValue; chart.GetXStringScaleValue = FastMultiChartUtils.GetDateTimeStringScaleValue; var blank = new TimeBalans(); chart.Graphs[0].Series.Add(new Series(blank.Property(p => p.Time), blank.Property(p => p.Balans), new Pen(Color.Red, 2f)) { XMemberTitle = Localizer.GetString("TitleDate"), YMemberTitle = Localizer.GetString("TitleBalance") }); //chart.Graphs[0].Series.Add(new Series(blank.Property(p => p.Time), blank.Property(p => p.Balans), new Pen(Color.Green, 2f)) //{ // XMemberTitle = Localizer.GetString("TitleDate"), // YMemberTitle = "HWM" //}); }
private static void SetupChart(FastMultiChart.FastMultiChart chart) { chart.Graphs[0].Series.Clear(); chart.GetXScaleValue = FastMultiChartUtils.GetDateTimeScaleValue; chart.GetXValue = FastMultiChartUtils.GetDateTimeValue; chart.GetXDivisionValue = FastMultiChartUtils.GetDateTimeDivisionValue; chart.GetMinXScaleDivision = FastMultiChartUtils.GetDateTimeMinScaleDivision; chart.GetMinYScaleDivision = FastMultiChartUtils.GetDoubleMinScaleDivision; chart.GetXStringValue = FastMultiChartUtils.GetDateTimeStringValue; chart.GetXStringScaleValue = FastMultiChartUtils.GetDateTimeStringScaleValue; chart.ShowScaleDivisionXLabel = true; chart.ShowScaleDivisionYLabel = true; chart.ScrollBarHeight = 30; chart.ShowHints = true; var blank = new TimeBalans(); chart.Graphs[0].Series.Add(new Series(blank.Property(p => p.Time), blank.Property(p => p.Balans), new Pen(Color.Red, 2f)) { XMemberTitle = Localizer.GetString("TitleDate"), YMemberTitle = Localizer.GetString("TitleBalance") }); chart.Graphs[0].Series.Add(new Series(blank.Property(p => p.Time), blank.Property(p => p.Balans), new Pen(Color.Green, 2f)) { XMemberTitle = Localizer.GetString("TitleDate"), YMemberTitle = "HWM" }); }