livecharts

c# How to invert Y Axis with Live Charts

*爱你&永不变心* 提交于 2019-12-11 06:41:59
问题 I'm trying to simply invert the Y Axis so this graph it goes up instead of down. Starting at 6 going up to 1. This is the user doc on inverted graphs https://lvcharts.net/App/examples/v1/wpf/Inverted%20Series This is the example I used to build the chart https://lvcharts.net/App/examples/v1/wpf/Date%20Time The user doc states every live series has an inverted class and for the LineSeries class its simply VerticalLineSeries which I've changed the DateTime example to. However the graph still

Convert List<double> to LiveCharts.IChartValues

[亡魂溺海] 提交于 2019-12-10 10:08:14
问题 I want to plot my double values in a graph with LiveCharts. But I can't convert my values. I get the error: Cannot convert source type 'System.Collections.Generic.List<double> to target type 'LiveCharts.IChartValues' This is my code (maybe not needed): using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Media;

Using CartesianChart with DateAxis and DateModel in X axis

允我心安 提交于 2019-12-08 07:19:12
问题 I need to draw a chart with a series of values that extend over time. The time period between values is irregular (a few seconds). For this I am using the library LiveChart.Wpf, following Date Time tutorial and date axis example from GitHub (DateAxisExample.xaml and DateAxisExample.xaml.cs). This is XAML: <UserControl x:Class="Wpf.Charts.SensorChart" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http:/

How customize column width in column series?

偶尔善良 提交于 2019-12-07 18:54:04
问题 I would like to know if is possible to customize the column width of a bar graph. Regards Franco 回答1: Short answer, yes, see this, you should be able to customize everything in Live-Charts, by default MaxColumnWidth property is 35px, this means the bar will be capped at 35 px, no matter if there is more available space, if you change this property your bars will grow, mySeries.MaxColumnWidth = double.PositiveInfinity; Playing with the column properties you can practically achieve any effect:

How customize column width in column series?

ぃ、小莉子 提交于 2019-12-06 14:31:10
I would like to know if is possible to customize the column width of a bar graph. Regards Franco Short answer, yes, see this , you should be able to customize everything in Live-Charts, by default MaxColumnWidth property is 35px, this means the bar will be capped at 35 px, no matter if there is more available space, if you change this property your bars will grow, mySeries.MaxColumnWidth = double.PositiveInfinity; Playing with the column properties you can practically achieve any effect: But it is a bit more complicated than that, bars will only have a greater width if there is enough space to

Convert List<double> to LiveCharts.IChartValues

≯℡__Kan透↙ 提交于 2019-12-05 21:14:45
I want to plot my double values in a graph with LiveCharts. But I can't convert my values. I get the error: Cannot convert source type 'System.Collections.Generic.List<double> to target type 'LiveCharts.IChartValues' This is my code (maybe not needed): using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Media; using LiveCharts; using LiveCharts.Wpf; using Brushes = System.Windows.Media.Brushes; namespace

Individually colored data points in LiveCharts WPF

我与影子孤独终老i 提交于 2019-12-03 20:11:52
I am using Live Charts WPF to draw some charts. To make each column bar of different color I added multiple series, but it doesn't show x-axis labels of all series. Why? senderChart.Series = new SeriesCollection(); int i = 0; var ax = new Axis { Separator = new LiveCharts.Wpf.Separator() { Step = 1 }, Labels = dateValues, ShowLabels = true }; senderChart.AxisX.Add(ax); foreach (var val in dataValues) { senderChart.Series.Add(new ColumnSeries { DataLabels = true, Title = dateValues[i], Values = new ChartValues<double>{val}, }); i++; } I also have tried almost every different way of assigning

How do I correctly update my chart values? (In real time)

我只是一个虾纸丫 提交于 2019-12-01 18:07:31
I recently encountered a tool called LiveChart and decided to test it out. Unfortunately I've been having some problems figuring out how to update the chart values in real time. I'm pretty sure there's a clean and correct way of doing it, but I can't seam to find it. I would like to be able to update the values through a private void or button. In my code I'm testing it out with a ToolStripMenu. [CODE]: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using

Column Series With different color on a different interval at x-axis fill in same series?

拈花ヽ惹草 提交于 2019-11-29 12:43:57
I'm trying to implement a speed/time plot UI, i'm using WPF with the MVVM Pattern and Live-Charts by beto-rodriguez as my plot library. I am using Column Series. i have two issues: 1) i have to start the series in middle of the x-axis how to do this? e.g if i set the min value as 7 the graph starts the x axis as 7 taking it the first point but i want x - axis to start at 1 but graph plotting should start at 7. 2) i have to change the color of the series at a certain condition say when x= 10 i want it to be shown as blue but when x= 17 i want to show the same series as pink only for that value

Column Series With different color on a different interval at x-axis fill in same series?

白昼怎懂夜的黑 提交于 2019-11-28 06:10:21
问题 I'm trying to implement a speed/time plot UI, i'm using WPF with the MVVM Pattern and Live-Charts by beto-rodriguez as my plot library. I am using Column Series. i have two issues: 1) i have to start the series in middle of the x-axis how to do this? e.g if i set the min value as 7 the graph starts the x axis as 7 taking it the first point but i want x - axis to start at 1 but graph plotting should start at 7. 2) i have to change the color of the series at a certain condition say when x= 10 i