-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
31 lines (31 loc) · 887 Bytes
/
Copy pathProgram.cs
File metadata and controls
31 lines (31 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using Npgg;
namespace BarChartExample
{
class Program
{
static void Main(string[] args)
{
var dic = new List<ConsoleBarChartOption>()
{
new ConsoleBarChartOption(){
BarColor = ConsoleColor.Red,
Name = "Newtonsoft.Json",
Value = 2000,
},
new ConsoleBarChartOption(){
BarColor = ConsoleColor.Yellow,
Name = "Utf8Json",
Value = 800,
},
new ConsoleBarChartOption(){
BarColor = ConsoleColor.Blue,
Name = "System.Text.Json",
Value = 1500,
}
};
ConsoleBarChart.Write(dic, 50);
}
}
}