Questions tagged [livecharts]

LiveCharts is an open source .NET charting library supporting WPF, WinForms, WinUI, Xamarin, MAUI, Avalonia, Uno and more.

Live Charts is a .NET data visualization library.

Source code and examples can be found in Live-Charts and LiveCharts 2 repositories on GitHub.

383 questions
3
votes
5 answers

cant initialize var variable more than once

hi i have a var variable and i need initialize it based on if statement this is my code: var series = new ColumnSeries{}; if(integer == 0) series = new LineSeries{}; else if (integer == 1) series = new PieSeries{}; else if (integer == 2) …
user9641573
3
votes
2 answers

WPF livechart not renderring correctly

I'am using livecharts to display 3 Solid Gauges. The "Value" and "To" Values are a simple Bindings. My third chart displays the correctly Value as Label, but the ActiveFill wont show up correctly. My xaml:
Tobias
  • 1,534
  • 11
  • 25
3
votes
1 answer

Vertically Stacked Y-Axis Step Line in Live Charts WPF

I've been using Winforms and the built in Charting library to accomplish this task in a hacky sort of way, but the team I'm developing for wants a more interactive solution. I wish I was able to just stack several charts, but as the graph is…
Jeffel
  • 31
  • 5
3
votes
1 answer

LiveCharts UWP : Add Margin space between Axislabel and Title

Is there any way to add Margin space in Red line ? I want to Add Margin space between Axislabel and Title. LiveCharts : https://lvcharts.net/
Kazuhiko Nakayama
  • 801
  • 1
  • 8
  • 24
3
votes
1 answer

Setting a min value of an axis in Live Charts graph

I'm using Live Charts library and I've run into a problem where the y axis has "-1000" as the min value. How do I set this to 0? I tried in the winforms under the Yaxis collection and setting MinValue to 0 there but that doesn't seem to do…
Bram
  • 444
  • 1
  • 5
  • 18
3
votes
1 answer

How to dynamically create a cartesian chart using livecharts

Can anyone tell me how to create cartesian chart dynamically in C# code? I created an instance of cartesian chart with CartesianChart ch = new CartesianChart(); but do I need to add series, margins, etc? Basically I need to create wpf cartesian…
LBajlo
  • 95
  • 3
  • 12
3
votes
3 answers

Align two cartesian charts with different axis label width?

I'm trying to build an financial chart using live charts but i want to have two charts that either share x-axis or have the x-axis synced. Im currently trying to have two charts with synced x-axis but running to trouble because of axis label width…
mrplatina
  • 239
  • 4
  • 7
3
votes
1 answer

Customize starting index in LiveChart

I am trying to draw a simple LineSeries with LiveChart. Because computer/array index by default starts with 0, and human (non-programmer) starts counting with 1, so I like to display the value's index starting with 1 (i.e. index+1), but could not…
KMC
  • 19,548
  • 58
  • 164
  • 253
3
votes
0 answers

Customize color of individual data in LiveChart

Is possible and how to customize individual data color in LiveChart? Instead of having the same color scheme for a series in code behind, I like to programmatically and conditionally color an individual data column. I thought of, as a work around,…
KMC
  • 19,548
  • 58
  • 164
  • 253
3
votes
2 answers

LiveCharts - plotting x&y from lists

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…
user8241949
3
votes
2 answers

c# Live Charts how to use Formatter

I'm a bit of a c# n00b and a complete Live Charts n00b. I'm trying to create a simple graph that spans a number of days. The graph displays the data but the date label does not format correctly on the X Axis. I believe its because of how I'm using…
Mr J
  • 2,655
  • 4
  • 37
  • 58
3
votes
1 answer

Change the format of the axis tick labels in LiveCharts

I just can't find a solution for changing the format of the y-axis tick labels. Now I get labels like 0.03 and 0.035. But I always need three digits behind the decimal point. The big question is, how to access the label format? This is my…
kame
  • 20,848
  • 33
  • 104
  • 159
3
votes
2 answers

LiveCharts (LVC) WPF - get chart from DataClick event

I've got a 'dashboard' with several charts on it. One of them is a pie chart with a number of series. LiveCharts has a DataClick event DataClick(object sender, ChartPoint chartPoint) sender is of type PieSlice. How can i access SeriesCollection…
Plump Worm
  • 233
  • 3
  • 13
3
votes
2 answers

Save Live Charts image

I need to save and print an image from cartesian live chart, I've searched in docs and tutorials but I can't find anything. How can I do this? I'm using WinForms and C# with Visual Studio 2012 Express.
A. G.
  • 33
  • 1
  • 4
3
votes
1 answer

Changing Legend color Livecharts

I have a problem when I change the color of a series in a CartesianChart, the color of the legend doesn't change. I created my custom legend, as explained in the part "Customize Tooltip" but without success. I tried to modify the stroke value using…
bobbinch
  • 51
  • 4
1 2
3
25 26