livecharts

How to customize legends in livecharts in winforms?

好久不见. 提交于 2021-02-20 02:45:30
问题 How to customize legends in livecharts in winforms ? I was trying to get some thing like this. In live chart winforms, I can only see these two options scatterChart.LegendLocation = LegendLocation.Right; scatterChart.DefaultLegend.Visibility = Visibility.Visible; But this wont help me to achieve a legend as I shown in the link. Would like to know some solutions. Thanks in advance. 回答1: We can create a DefaultLegend and add our properties into it and assign to chart's DefaultLegend as follows

LiveCharts Line Graph style based on point value

感情迁移 提交于 2021-02-11 17:51:55
问题 I draw a bunch of line graphs using LiveCharts and WPF , where the contents and the number of line charts are determined at run time. So I don't know in advance how many LineSeries will be there, and what their values will be. However, I know the good range for each LineSeries . For example, one series, let's call it S1 has a good range of 2+/-1. So anything between 1 and 3 are considered to be good. Similarly there can be another, say S2 where range is 30+/-2, so anything between 28 and 32

Different colors for each value in a ColumnSeries

点点圈 提交于 2021-01-27 14:41:43
问题 I am using LiveCharts in WPF to create a Cartesian Chart with columns. The values come from a list which in turns is populated with values from a database. Everything works fine except I would like each column to have a different fill. It does not matter what color, just a random color for each seperate column. Also, I do not want to create a new series for each value because there are too many values. The Mappers method from the similar question does not work for me since the example changes

LiveCharts WPF Slow with live data. Improve LiveCharts real-time plotting performance

ぃ、小莉子 提交于 2021-01-21 11:13:36
问题 I am investigating the use of LiveChart within a WPF application for the purpose of plotting in real time, temperature measurements. I have put together a simple line chart example to read data at 10Hz, and redraw for every sample. However, I am finding that the redraw rate is around 1Hz. This seems very slow for a WPF Live charting tool. My xaml is as follows : <lvc:CartesianChart x:Name="TemperatureChart" Grid.Row="1" LegendLocation="Right" Hoverable="False" DataTooltip="{x:Null}"> <lvc

Margin between different series ploted in Live Charts Wpf

纵然是瞬间 提交于 2020-12-14 06:32:52
问题 I have plotted different series in basic column chart of live charts. but they are too close too each other. can i give some margin between them ? Also it doesn't show title of each series ? for (int i=0; i< _saleInvoiceList.Count;i++) { _seriesCollection.Add( new ColumnSeries { Title = _saleInvoiceList[i].SOType, DataLabels = true, Foreground = new SolidColorBrush(Color.FromRgb(254,24,24)), Values = new ChartValues<int>{_saleInvoiceList[i].Total}, //Fill = PickBrush(), Margin = new Thickness

Margin between different series ploted in Live Charts Wpf

巧了我就是萌 提交于 2020-12-14 06:31:12
问题 I have plotted different series in basic column chart of live charts. but they are too close too each other. can i give some margin between them ? Also it doesn't show title of each series ? for (int i=0; i< _saleInvoiceList.Count;i++) { _seriesCollection.Add( new ColumnSeries { Title = _saleInvoiceList[i].SOType, DataLabels = true, Foreground = new SolidColorBrush(Color.FromRgb(254,24,24)), Values = new ChartValues<int>{_saleInvoiceList[i].Total}, //Fill = PickBrush(), Margin = new Thickness

LiveCharts - plotting x&y from lists

余生颓废 提交于 2020-08-09 02:45:10
问题 I have four lists (x1List, y1List, x2List, y2List) which hold 1000 values each, i want to plot these lists as x & y values using LiveCharts. i understand how to plot the y values using; new LineSeries { Title = "Series1", Values = y1List.AsChartValues(), PointGeometry = null }, new LineSeries { Title = "Series2", Values = y2List.AsChartValues(), PointGeometry = null }, I don't understand how to apply the x values to their respective series. I'm new to c# so apologies if this is something

LiveCharts - plotting x&y from lists

本秂侑毒 提交于 2020-08-09 02:44:29
问题 I have four lists (x1List, y1List, x2List, y2List) which hold 1000 values each, i want to plot these lists as x & y values using LiveCharts. i understand how to plot the y values using; new LineSeries { Title = "Series1", Values = y1List.AsChartValues(), PointGeometry = null }, new LineSeries { Title = "Series2", Values = y2List.AsChartValues(), PointGeometry = null }, I don't understand how to apply the x values to their respective series. I'm new to c# so apologies if this is something

c# chart to image with LiveCharts

扶醉桌前 提交于 2020-01-23 13:10:13
问题 i have a little problem. I want to export to an image my charts. I known that is possible with the code given by beto-rodriguez (here). But i have a problem, i can't have what i could have by displaying it in the screen. See the image above. On the bottom right, i have the image saved in png. And in the left of the image, i have the chart with all the parameters displayed where i want. Do you known if it's possible to have the same chart (in the left) in the saved image ? Actually, i use a

WPF Live-Charts — Binding Separator in Code Not Working

女生的网名这么多〃 提交于 2020-01-06 08:30:49
问题 Using Live Charts 0.9.7 - and .NET 4.5 I'm trying to add a separator via code to an axis and bind the separator step value in code because I'm adding new series to a cartesian plot dynamically at runtime. The separator will change depending on how large the dataset is. Here is my code: public partial class PlottingTool : UserControl, INotifyPropertyChanged { public static SeriesCollection SeriesCollection { get; set; } #region LineSeries1Specifics private double _lineSeries1XAxisSeparatorStep