How to customize the LiveChart in C# WPF ?

Mojtaba_Hakim 321 Reputation points
2022-12-17T20:22:32.697+00:00

I'm using C# WPF in Visual Studio with .NET Framework 4.7.2 with SQL Server 2019 Database, and using LiveChart

What I want

I'm looking for easy and good tool for chart in WPF to control these things :
271685-simulate.png

  • Change font and style color of chart
  • Show label on top of column's chart
  • change text form of numbers like this 15000 => 15,000

What I have :
271732-untitled.jpg

My Full source code with table script :
c4RH1JaJ

How can I do these things that I need? I was really confused between the tools

is there anything better than which be easy to do this ?

Developer technologies Windows Presentation Foundation
Developer technologies XAML
Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. P a u l 10,761 Reputation points
    2022-12-17T22:23:27.647+00:00

    Have you tried these LabelFormatters?:
    https://v0.lvcharts.com/App/examples/v1/Wpf/Labels#formatted-labels

    And then just define it to val => val.ToString("N0")

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.